SystemTimeToFileTime
SystemTimeToFileTimeTheSystemTimeToFileTimefunction converts a system time to a file time.
BOOLSystemTimeToFileTime(const SYSTEMTIME*lpSystemTime,LPFILETIMElpFileTime);
ParameterslpSystemTime[in] Pointer to aSYSTEMTIMEstructure that contains the time to be converted. ThewDayOfWeekmember of theSYSTEMTIMEstructure is ignored.
lpFileTime[out] Pointer to aFILETIMEstructure to receive the converted system time. Return ValuesIf the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, callGetLastError.
Example Code For an example, see Changing a File Time to the Current Time.
RequirementsClient
Requires Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, or Windows 95.
Server
Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server.
Header
Declared in Winbase.h; include Windows.h.
Library
Link to Kernel32.lib.
DLL
Requires Kernel32.dll.