Stores information about opened files on a server into an array.
ANetFiles(cArrayName[, cServer [, cBasepath [, cUser]]])
Parameters
- cArrayName
On return the array contains the following information from the FILE_INFO_3 structure. Column Content Datatype 1 The path of the opened resource. C 2 A string that specifies which user (on servers that have user-level security) or which computer (on servers that have share-level security) opened the resource. C 3 A identification number assigned to the resource when it is opened. N 4 The access permissions associated with the opening application. N 5 The number of file locks on the file, device, or pipe. N
- cServer (optional)
default = NULL
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.
- cBasePath (optional)
default = NULL
A qualifier for the returned information. If this parameter is NULL, all open resources are enumerated. If this parameter is not NULL, the function enumerates only resources that have the value of the basepath parameter as a prefix.
- cUser (optional)
default = NULL
The name of the user. If this parameter is not NULL, its value serves as a qualifier for the enumeration. The files returned are limited to those that have user names matching the qualifier. If this parameter is NULL, no user-name qualifier is used.
Return Value
The number of files.
See Also
Reference
AbortUrlDownloadToFileEx
AIpAddresses
ANetServers
GetServerTime
IcmpPing
Ip2MacAddress
ResolveHostToIp
SyncToSNTPServer
UrlDownloadToFileEx