winXP兼容性问题

The problem is that GetTickCount64 doesn’t exists in XP system.
It’s necessary to compile your application (and any library which uses GetTickCount64) with correct windows version define

targetver.h

#define WINVER 0x0501
#define _WIN32_WINNT 0x0501

#include < WinSDKVer.h>

#include <SDKDDKVer.h>

在预处理设置中

WINVER=0x0501
_WIN32_WINNT=0x0501

InitializeCriticalSectionEx not located in KERNEL32.dll

The “InitializeCriticalSectionEx” function does not exist in the XP version of Kernel32.dll, even with SP3 installed. It was not introduced until Vista.