December 05, 2007

SYSTEMTIME, FILETIME, and LARGE_INTEGER

SYSTEMTIME to FILETIME
SystemTimeToFileTime Function
http://msdn2.microsoft.com/en-us/library/ms724948.aspx

FILETIME to SYSTEMTIME
FileTimeToSystemTime Function
http://msdn2.microsoft.com/en-us/library/ms724277.aspx

Copy FILETIME to LARGE_INTEGER
LARGE_INTEGER.LowPart = FILETIME.dwLowDateTime
LARGE_INTEGER.HighPart = FILETIME.dwHighDateTime

Copy LARGE_INTEGER to FILETIME
FILETIME.dwLowDateTime = LARGE_INTEGER.LowPart
FILETIME.dwHighDateTime = LARGE_INTEGER.HighPart

LARGE_INTEGER
Perform 64-bit arthimetic on LARGE_INTEGER.QuardPart member