On a , calling GetSystemTimePreciseAsFileTime dynamically (via GetProcAddress ) will return NULL . Statically linking will cause a missing import error when loading the executable.

"The procedure entry point GetSystemTimePreciseAsFileTime could not be located in the dynamic link library KERNEL32.dll."

to Windows 10 or Windows 11 for full compatibility with modern software.

If distributing software, always use dynamic loading (as shown above). Do not statically link against the function unless your installer explicitly checks for and installs KB2670838.