An application can get the current system time using the timeGetTime or timeGetSystemTime functions. The system time is the count of milliseconds since Windows was started. The timeGetTime function returns the system time, and the timeGetSystemTime function fills an MMTIME structure with the system time.
The timeGetTime function has the following syntax:
DWORD timeGetTime()
The timeGetSystemTime function has the following syntax:
WORD timeGetSystemTime(lpMMTime, wSize)
The lpMMTime parameter is a far pointer to an MMTIME structure. The wSize parameter specifies the size of the MMTIME structure.
The timeGetSystemTime function returns TIMERR_NOERROR if successful.