Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.28 KB

File metadata and controls

54 lines (35 loc) · 1.28 KB

Home

Function name : NetFileClose

Group: Network Management - Library: netapi32


The NetFileClose function forces a resource to close.


Declaration:

NET_API_STATUS NetFileClose(
	LMSTR servername,
	DWORD fileid
);  

FoxPro declaration:

DECLARE INTGER NetFileClose IN netapi32;
	STRING servername,;
	LONG fileid
  

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.

fileid [in] Specifies the file identifier of the opened resource instance to close.


Return value:

If the function succeeds, the return value is NERR_Success (0).


Comments:

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.