Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.04 KB

File metadata and controls

46 lines (30 loc) · 1.04 KB

Home

Function name : _lclose

Group: File Management - Library: kernel32


Closes the specified file so that it is no longer available for reading or writing.


Code examples:

A procedure for setting file times

Declaration:

HFILE _lclose(
	HFILE  hFile 	// handle of file to close
);  

FoxPro declaration:

DECLARE INTEGER _lclose IN kernel32 INTEGER hFile  

Parameters:

hFile Identifies the file to be closed. This handle is returned by the function that created or last opened the file.


Return value:

If the function succeeds, the return value is zero. If the function fails, the return value is HFILE_ERROR.


Comments:

This function is provided for compatibility with 16-bit versions of Windows. Win32-based applications should use the CloseHandle function.