在出错的文件头部添加该宏定义, 详细原因可以查看windows.h对该宏的使用即可。
#ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #include <windows.h> xxx