Group: File Management - Library: kernel32
Setting the date and time that a file was created
Using GetFileSize
Locking and unlocking file of a VFP table
Comparing file times
Using InternetSetFilePointer when resuming interrupted download from the Internet
Retrieving file information for the VFP executable running
Passing data records between VFP applications via the Clipboard
How to set Creation Date/Time for a folder (WinNT)
Using File Mapping for enumerating files opened by Visual FoxPro
HFILE OpenFile(
LPCSTR lpFileName, // file name
LPOFSTRUCT lpReOpenBuff, // file information
UINT uStyle // action and attributes
);
DECLARE INTEGER OpenFile IN kernel32;
STRING lpFileName,;
STRING @ lpReOpenBuff,;
INTEGER wStyle
lpFileName [in] Pointer to a null-terminated string that names the file to be opened
lpReOpenBuff [out] Pointer to the OFSTRUCT structure that receives information about the file when it is first opened. The structure can be used in subsequent calls to the OpenFile function to refer to the open file
uStyle [in] Specifies the action to take
If the function succeeds, the return value specifies a file handle
After being open the file can be closed by CloseHandle. And oh, of course it can be read, written etc.