error C3861: 'InitializeCriticalSectionAndSpinCount': identifier not found

If you've got stdafx.h, try removing the following line if you have it.

#define WIN32_LEAN_AND_MEAN

Also note that MSDN says:

"To compile an application that uses this function, define

_WIN32_WINNT as 0x0403 or later"

原文地址:https://www.cnblogs.com/answer/p/1702072.html