Here is the key information regarding this function and Windows 7:
Microsoft released Platform Update and service updates that added some APIs to earlier OS versions. However, GetSystemTimePreciseAsFileTime was not made available on stock Windows 7 through standard Platform Update packages; it remains an API introduced in later Windows versions. getsystemtimepreciseasfiletime windows 7 upd
pGetSystemTimePreciseAsFileTime dyn_GetSystemTimePreciseAsFileTime = (pGetSystemTimePreciseAsFileTime)GetProcAddress(GetModuleHandle(TEXT("kernel32.dll")), "GetSystemTimePreciseAsFileTime"); Here is the key information regarding this function
Here's an example of how to use GetSystemTime on Windows 7: Without this update
ULONGLONG total100ns = (seconds * 10000000) + remainder100ns;
You need (or later cumulative updates) to enable it. Without this update, GetSystemTimePreciseAsFileTime is not present in kernel32.dll , and your code will fail at runtime.
If you have administrative privileges, you can bundle and silently install KB2813345 as a prerequisite. The update is redistributable via the Microsoft Update Catalog.