astronomy icon indicating copy to clipboard operation
astronomy copied to clipboard

Check if GetSystemTimePreciseAsFileTime() is available and fallback to GetSystemTimeAsFileTime()

Open yani opened this issue 6 months ago • 0 comments

This fixes an issue where GetSystemTimePreciseAsFileTime() can not be found in kernel32.dll on earlier Windows versions. This function has been added in Windows 8.

I didn't use the IsWindows8OrGreater() because the (unnoficial) extended kernel patches for Windows 7 add the GetSystemTimePreciseAsFileTime function.

More info: GetSystemTimePreciseAsFileTime Notice the: Minimum supported client: Windows 8 [desktop apps | UWP apps]

yani avatar Aug 10 '24 16:08 yani