GetNetAccessFileInfo
function GetNetAccessFileInfo (const FileName : string; const Key : TKey; var NetAccessInfo : TNetAccessInfo) : Boolean;
TNetAccessInfo = packed record
 Total   : Cardinal;
 Locked  : Cardinal;
 Invalid : Cardinal;
end;

TurboPack OnGuard FMX

GetNetAccessFileInfo

function GetNetAccessFileInfo (const FileName : string; const Key : TKey; var NetAccessInfo : TNetAccessInfo) : Boolean;

TNetAccessInfo = packed record
 Total   : Cardinal;
 Locked  : Cardinal;
 Invalid : Cardinal;
end;

Navigation:  »No topics above this level«

GetNetAccessFileInfo

function GetNetAccessFileInfo (const FileName : string; const Key : TKey; var NetAccessInfo : TNetAccessInfo) : Boolean;

TNetAccessInfo = packed record
 Total   : Cardinal;
 Locked  : Cardinal;
 Invalid : Cardinal;
end;

Return to chapter overview

_bm1 GetNetAccessFileInfo obtains information about the specified network access file.

FileName is the name of an existing network access file and Key is the key that was used to create it. The network access file information is returne as the NetAccessInfo parameter and consists of the total number of access slots, the number of locked slots, and the number of invalid access slots. (An access slot becomes invalid when the application using it is terminated in a non-standard way.)

GetNetAccessFileInfo returns false if there was an error, otherwise true.

This routine is defined in the OgNetWrk unit.