Group: Network Management - Library: netapi32
NET_API_STATUS NetFileClose(
LMSTR servername,
DWORD fileid
); DECLARE INTGER NetFileClose IN netapi32;
STRING servername,;
LONG fileid
servername [in] Pointer to a string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute.
fileid [in] Specifies the file identifier of the opened resource instance to close.
If the function succeeds, the return value is NERR_Success (0).
This function can be used when an error prevents closure by any other means. You should use NetFileClose with caution because it does not write data cached on the client system to the file before closing the file.
If servername parameter is NULL, the local computer is used.
See also: NetFileEnum, NetFileGetInfo.
Home