登录
首页 » Windows开发 » achieve dormancy function is very simple, as long as the implementation of the a...

achieve dormancy function is very simple, as long as the implementation of the a...

于 2022-03-20 发布 文件大小:1.46 kB
0 169
下载积分: 2 下载次数: 1

代码说明:

实现休眠功能很简单,只要在任意想要执行的地方执行如下给出的休眠函数SetPower()就行,其实休眠很简单,只需要API:SetSystemPowerState()就行,就如关机/注销/重启一样,只需要ExitWindowEx(),但这些API可以直接用在98下,却不能用在2000/XP中,因为这里牵涉到了用户权限,没有权限是不能进行这些操作的,所以,首先要取得权限,下面给出代码:-achieve dormancy function is very simple, as long as the implementation of the arbitrary want the local implementation of the dormancy is as follows function SetPower () on the trip, dormancy is very simple, just API : SetSystemPowerState () on the trip, as shutdown/cancellation/restart, only ExitWindowEx (), but these APIs can be directly used in 98, not in 2000/XP can use, because it involves a user privileges, no authority can carry out these operations, therefore, must first obtain authority code is given below :

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 这是我写得几个关于窗体的几个程序。我将它们组合成一个FORM。一个按键对应一个窗体例子。站长可千万看清楚哦。还有是2003.NET环境...
    这是我写得几个关于窗体的几个程序。我将它们组合成一个FORM。一个按键对应一个窗体例子。站长可千万看清楚哦。还有是2003.NET环境-several written on the form of several programs. I will mix them into a FORM. A button corresponding forms an example. Head can see oh, 10 million. There is 2003.NET environment
    2022-03-11 19:14:01下载
    积分:1
  • C++实现模拟操作系统的进程控制与状态转换
    使用C++模拟操作系统的进程之间的状态转换。包括进程之间对临界资源的使用以及进程同步的调度。
    2022-05-14 21:12:51下载
    积分:1
  • C++ 扑克牌游戏
    一款C++语言开发的扑克牌游戏,适合喜欢开发游戏程序的朋友们参考
    2022-05-27 07:34:53下载
    积分:1
  • 移动电话号码所在的省、市、服务提供商…
    手机号所在省市及服务供应商查询的VB源码,关键是内带的查询数据库很有价值的(2007年4月的新数据)。-Mobile phone number where the provinces and municipalities and service providers VB source query, the key is inside the belt of great value to query the database (in April 2007 the new data).
    2023-01-01 19:40:45下载
    积分:1
  • 时间管理方面,用于自助定义机器的时间,关机时间
    时间管理方面,用于自助定义机器的时间,关机时间-time management, for self-definition of the machines, shutdown time
    2022-03-24 22:09:47下载
    积分:1
  • the book is Microsoft Press MicrosoftVisualStudio authorized by the Chinese edit...
    本书是美国微软出版社授权的MicrosoftVisualStudio中文版系列中的一本。全书按字母顺序列出了VisualBasic6.0的函数、语句、方法、属性及事件,附录部分提供了ANSI字符集、数据类型、运算符等等的数学函数及转换函数。本书不但是从事VisualBasic6.0应用和开发人员的工具书,也可作为大专院校相关专业的师生、科研院所的科技人员自学和教学的重要参考书。本书还提供配套的电子书,以方便读者携带、学习和长久保存。-the book is Microsoft Press MicrosoftVisualStudio authorized by the Chinese edition of the series, one. The book listed in alphabetical order by VB6.0 functions, the statement, methods, properties and events, appendix portion of the ANSI character set, data types, etc. Operators of mathematical functions and conversion functions. This book is not only engaged in the development of Visual Basic 6.0 applications and the tools that can be as professional institutions related to the teachers and students, research institutes and technological personnel in learning and teaching as an important reference book. The book also provides matching e-books, for the convenience of the reader to carry, learning and the long-term preservation.
    2022-04-26 23:53:51下载
    积分:1
  • 一个利用Listctrl控件做在程序.我自己在程序也是在此基础上经过简单修改而成的...
    一个利用Listctrl控件做在程序.我自己在程序也是在此基础上经过简单修改而成的-Listctrl use of a control procedure done. I also own procedures on the basis of a simple The revisions
    2022-02-27 03:04:24下载
    积分:1
  • 本程序设计分为服务器应用程序及客户机应用程序部分,采用Socket套接字库网络编程。(UDP)和(TCP/IP)相结合的连接方式,及解决了数据传输的时效性又能保...
    本程序设计分为服务器应用程序及客户机应用程序部分,采用Socket套接字库网络编程。(UDP)和(TCP/IP)相结合的连接方式,及解决了数据传输的时效性又能保证数据在传输的过程中不会丢失。另外程序采用多个线程来避免程序阻塞。具体设计思路及部分代码如下: 程序设计目的:首先就是完成课设任务啦(大二课设内容)其他目的: 1:练习使用套接字进行网络编程。 2:练习使用自定义消息。 3:练习多线程方面的编程思想。 4:练习使用各种控件。 -This procedure is divided into server application design and part of the client application using Socket socket network programming library. (UDP) and (TCP/IP) connection method of combining, and resolved the timeliness of data transmission but also ensures that the process of data transmission will not be lost. Other procedures to avoid the use of multiple threads blocking procedures. Specific design ideas and some code as follows: program design purposes: first mission is set up you finish class (sophomore class for the content of) other purposes: 1: Practice using the socket network programming. 2: Practice the use of custom message. 3: practice aspects of multi-threaded programming idea. 4: Practice using a variety of controls.
    2022-03-23 04:56:54下载
    积分:1
  • 本地端口使用
    C#查看本地端口使用情况,winform的,可以很清楚的看到本地计算机的端口使用情况。
    2022-04-21 04:42:14下载
    积分:1
  • 窗口编程1
    windows 程序设计源码1-5-windows programming source 1-5
    2022-09-28 21:55:05下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载