Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.33 KB

File metadata and controls

51 lines (36 loc) · 1.33 KB

Home

Function name : SystemTimeToFileTime

Group: Time - Library: kernel32


The SystemTimeToFileTime function converts a system time to a file time.


Code examples:

Setting the date and time that a file was created
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 SystemTimeToFileTime(
  CONST SYSTEMTIME *lpSystemTime,  // system time
  LPFILETIME lpFileTime            // file time
);  

FoxPro declaration:

DECLARE INTEGER SystemTimeToFileTime IN kernel32;
	STRING  lpSYSTEMTIME,;
	STRING  @ FILETIME  

Parameters:

lpSystemTime [in] Pointer to a SYSTEMTIME structure that contains the time to be converted. The wDayOfWeek member of the SYSTEMTIME structure is ignored.

lpFileTime [out] Pointer to a FILETIME structure to receive the converted system time.


Return value:

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