Skip to content

Commit

Permalink
winapi: Implement GetSystemTimeAsFileTime()
Browse files Browse the repository at this point in the history
  • Loading branch information
thrimbor committed Jan 8, 2025
1 parent 3a29e28 commit c66d6a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/winapi/sysinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ void GetSystemTime (LPSYSTEMTIME lpSystemTime)
lpSystemTime->wDayOfWeek = timeFields.Weekday;
}

void GetSystemTimeAsFileTime (LPFILETIME lpSystemTimeAsFileTime)
{
GetSystemTimePreciseAsFileTime(lpSystemTimeAsFileTime);
}

void GetSystemTimePreciseAsFileTime (LPFILETIME lpSystemTimeAsFileTime)
{
assert(lpSystemTimeAsFileTime != NULL);
Expand Down
1 change: 1 addition & 0 deletions lib/winapi/sysinfoapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ extern "C" {
#endif

void GetSystemTime (LPSYSTEMTIME lpSystemTime);
void GetSystemTimeAsFileTime (LPFILETIME lpSystemTimeAsFileTime);
void GetSystemTimePreciseAsFileTime (LPFILETIME lpSystemTimeAsFileTime);
DWORD GetTickCount (void);
void GetLocalTime (LPSYSTEMTIME lpSystemTime);
Expand Down

0 comments on commit c66d6a0

Please sign in to comment.