锁屏的函数
以下是找不到定义的解决方法
#ifndef WINVER
#define WINVER 0x0400
/*
* If you need Win32 API features newer the Win95 and WinNT then you must
* define WINVER before including windows.h or any other method of including
* the windef.h header.
*/
#endif
#ifndef _WIN32_WINNT
#define _WIN32_WINNT WINVER
/*
* There may be the need to define _WIN32_WINNT to a value different from
* the value of WINVER. I don't have any example of why you would do that.
* However, if you must then define _WIN32_WINNT to the value required before
* including windows.h or any other method of including the windef.h header.
*/
#endif
明白了。原来_WIN32_WINNT被定义为WINVER,而WINVER又被定义为0x0400,而且要改变两个的值需要在#include
之前。把#define WINVER 0x0500(或者#define _WIN32_WINNT
0x0500)放在最前面,编译,问题解决。(建议使用#define WINVER
0x0500,因为_WIN32_WINNT的说明中要求尽量保持和WINVER的一致。)
阅读(1136) | 评论(0) | 转发(0) |