Platform SDK: Files and I/O

_lclose

The _lclose function closes the specified file so that it is no longer available for reading or writing.

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

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

Parameters

hFile
[in/out] Handle to the file to be closed. This handle is returned by the function that created or last opened the file.

Return Values

If the function succeeds, the return value is zero.

If the function fails, the return value is HFILE_ERROR. To get extended error information, call GetLastError.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Winbase.h; include Windows.h.
  Library: Use Kernel32.lib.

See Also

File I/O Overview, File I/O Functions, CloseHandle, CreateFile, _lopen