GetSystemTime

  VOID GetSystemTime(lpst)    
  LPSYSTEMTIME lpst; /* address of system time structure */

The GetSystemTime function retrieves the current system date and time.

Parameters

lpst

Points to a SYSTEMTIME structure that receives the current system date and time.

The SYSTEMTIME structure has the following form:

typedef struct _SYSTEMTIME { /* st */

WORD wYear;

WORD wMonth;

WORD wDayOfWeek;

WORD wDay;

WORD wHour;

WORD wMinute;

WORD wSecond;

WORD wMilliseconds;

} SYSTEMTIME;

typedef SYSTEMTIME *PSYSTEMTIME, *LPSYSTEMTIME;

Return Value

This function does not return a value.

See Also

SetSystemTime