If you are in a locked-down enterprise environment where optional updates are forbidden, you still have two workarounds:
Visit the official Microsoft Download Center for KB2999226 .
if (pfn) pfn(ft); else GetSystemTimeAsFileTime(ft); getsystemtimepreciseasfiletime windows 7 upd
The update will fail to install. Install SP1 (KB976932) first.
GetSystemTimePreciseAsFileTime is slower than GetSystemTimeAsFileTime because it must read from the high-resolution timer and convert to system time format. For non-critical paths, this is fine. If you are in a locked-down enterprise environment
"无法定位程序输入点 GetSystemTimePreciseAsFileTime 于动态链接库 kernel32.dll 上" (in Chinese systems) or:
GetSystemTimePreciseAsFileTime is a Windows API function that retrieves the current system time with high precision. It returns the current system time in the form of a FILETIME structure, which represents the number of 100-nanosecond intervals that have elapsed since January 1, 1601. It returns the current system time in the
cl /D_WIN32_WINNT=0x0601 source.c