Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.12 KB

GetFileInformationByHandle.md

File metadata and controls

47 lines (33 loc) · 1.12 KB

Home

Function name : GetFileInformationByHandle

Group: File Management - Library: kernel32


The GetFileInformationByHandle function retrieves file information for a specified file.


Code examples:

Retrieving file information for the VFP executable running
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)

Declaration:

BOOL GetFileInformationByHandle(
  HANDLE hFile,                           // handle to file
  LPBY_HANDLE_FILE_INFORMATION lpFileInfo // buffer
);  

FoxPro declaration:

DECLARE INTEGER GetFileInformationByHandle IN kernel32;
	INTEGER   hFile,;
	STRING  @ lpFileInfo  

Parameters:

hFile [in] Handle to the file for which to obtain information.

lpFileInformation [out] Pointer to a BY_HANDLE_FILE_INFORMATION structure that receives the file information.


Return value:

If the function succeeds, the return value is nonzero.