LockWorkStation

来源:互联网 发布:程序员基本要求 编辑:程序博客网 时间:2024/05/20 01:11
锁屏的函数

以下是找不到定义的解决方法

http://www.rupeng.com/forum/thread-4007-1-1.html

#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的一致。)
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(534) | 评论(0) | 转发(0) |
0

上一篇:彻底了解Windows XP操作系统登录类型

下一篇:work

相关热门文章
  • LNK1123: 转换到 COFF 期间失...
  • WIN7访问共享:0x80070035 找不...
  • Delphi 2010下载+完美破解...
  • vs2010调试C++程序时提示 无...
  • VISIO,不规则封闭图形填充方...
  • linux dhcp peizhi roc
  • 关于Unix文件的软链接
  • 求教这个命令什么意思,我是新...
  • sed -e "/grep/d" 是什么意思...
  • 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~