Group: File Management - Library: kernel32
Creating a unique filename based on existing filename
Using the GetTempFileName
Locking and unlocking file of a VFP table
DWORD GetTempPath(
DWORD nBufferLength, // size of buffer
LPTSTR lpBuffer // path buffer
);
DECLARE INTEGER GetTempPath IN kernel32;
INTEGER nBufferLength,;
STRING @ lpBuffer
nBufferLength [in] Specifies the size, in TCHARs, of the string buffer identified by lpBuffer.
lpBuffer [out] Pointer to a string buffer that receives the null-terminated string specifying the temporary file path. The returned string ends with a backslash, for example, C:\TEMP.
If the function succeeds, the return value is the length of the string copied to lpBuffer, not including the terminating null character