-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathNetFileGetInfo.md
More file actions
60 lines (41 loc) · 1.32 KB
/
Copy pathNetFileGetInfo.md
File metadata and controls
60 lines (41 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[<img src="../../images/home.png"> Home ](https://github.com/VFPX/Win32API)
## Function name : NetFileGetInfo
Group: [Network Management](../../functions_group.md#Network_Management) - Library: [netapi32](../../Libraries.md#netapi32)
***
#### The NetFileGetInfo function retrieves information about a particular opening of a server resource.
***
## Declaration:
```foxpro
NET_API_STATUS NetFileGetInfo(
LPWSTR servername,
DWORD fileid,
DWORD level,
LPBYTE* bufptr
);
```
***
## FoxPro declaration:
```foxpro
DECLARE INTEGER NetFileGetInfo IN netapi32;
STRING servername,;
INTEGER fileid,;
INTEGER lvl,;
STRING @ bufptr
```
***
## Parameters:
servername
[in] Pointer to a string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute. If this parameter is NULL, the local computer is used.
fileid
[in] Specifies the file identifier of the open resource for which to return information.
level
[in] Specifies the information level of the data.
bufptr
[out] Pointer to the address of the buffer that receives the information.
***
## Return value:
If the function succeeds, the return value is NERR_Success (0).
***
## Comments:
You can call the NetFileEnum function to retrieve information about multiple files open on a server.
***