Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.33 KB

LocalFileTimeToFileTime.md

File metadata and controls

50 lines (34 loc) · 1.33 KB

Home

Function name : LocalFileTimeToFileTime

Group: Time - Library: kernel32


Converts a local file time to a file time based on the Coordinated Universal Time (UTC).


Code examples:

A procedure for setting file times
How to suspend or hibernate your system
How to set Creation Date/Time for a folder (WinNT)

Declaration:

BOOL LocalFileTimeToFileTime(
  CONST FILETIME *lpLocalFileTime,  // local file time
  LPFILETIME lpFileTime             // file time
);  

FoxPro declaration:

DECLARE INTEGER LocalFileTimeToFileTime IN kernel32;
	STRING LOCALFILETIME,;
	STRING @ FILETIME  

Parameters:

lpLocalFileTime [in] Pointer to a FILETIME structure that specifies the local file time to be converted into a UTC-based file time.

lpFileTime [out] Pointer to a FILETIME structure to receive the converted UTC-based file time. This parameter cannot be the same as the lpLocalFileTime parameter.


Return value:

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