登录
首页 » 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 201
下载积分: 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 个回复

  • VC源小游戏
    这是一款VC6开发的小游戏,对于初学者来说还是相当不错的一个学习案例。对高手来说就不要看了,直接飘过吧,这些东西都不适合老手看了。研究下其中的一些算法还是蛮有意思的。不过要是专门学习算法的话,不建议看本套源码
    2022-03-20 18:03:42下载
    积分:1
  • Modbus Slave 调试程序,及VB例程
    Modbus Slave 调试程序,及VB例程-Modbus Slave debugger and VB routines
    2022-02-03 05:47:35下载
    积分:1
  • Bayes classification of source code under windows
    bayes分类 windows下的源程序-Bayes classification of source code under windows
    2022-02-12 15:09:44下载
    积分:1
  • java modbus 库
    java 版本的 modbus 库,简单好用。包含应用实例,串口应用jssc,直接导入工程,运行就可以,支持android,linux系统。
    2022-08-11 00:54:23下载
    积分:1
  • 这是一个很小的经典游戏,很多手机和过去流行的手掌机上都有。怀旧一下...
    这是一个很小的经典游戏,很多手机和过去流行的手掌机上都有。怀旧一下-This a small classic game that it is used in many old kinds of HandSet
    2022-01-25 19:19:38下载
    积分:1
  • 用MFC实现的在pocket PC之间通过红外技术通信的程序
    用MFC实现的在pocket PC之间通过红外技术通信的程序-used in pocket PC through infrared technology communications procedures
    2022-06-06 15:15:00下载
    积分:1
  • 用VC改变系统时间
    用VC改变系统时间-VC change the system time
    2022-01-25 17:56:10下载
    积分:1
  • 销售1.0点
    应用背景销售1.0点主要特点:1、客户管理2、供应商管理3、库存管理4、销售管理5。客户亭(单独的客户页面跟踪订单,订单和许多更多)6、产品管理7、高级报告管理员登录信息:用户名管理密码- 12345客户登录信息:他们可以注册和使用该软件的订单,跟踪订单和更多。关键技术销售点(C # V1.0和SQL服务器)这个项目是用C和SQL Server 2012 # 4.5为我客户的开发研究。
    2022-03-01 06:21:10下载
    积分:1
  • 如何在绘图过程中捕获鼠标(c++源码)
    如何在绘图过程中捕获鼠标(c++源码)- How catches the mouse in the cartography process (c++ source code)
    2023-03-23 16:05:04下载
    积分:1
  • 商业单位需要容易记忆的电话号码,有一些方法可以让电话号码变得更容易记忆。譬如,可以把电话号码写成单词或短语,如 TUT...
    商业单位需要容易记忆的电话号码,有一些方法可以让电话号码变得更容易记忆。譬如,可以把电话号码写成单词或短语,如 TUT-GLOP 可以代表滑铁卢大学的电话。有时仅仅是把号码的一部分写成单词,如打 310-GINO 便可向 GINO 比萨饼店定购比萨。另一种让电话号码容易记忆的方法是将数字用一种容易记的方式组合起来,譬如 3-10-10-10 也可以代表 GINO 比萨饼店。 电话号码的标准形式是七位十进制数字,在它的第三位和第四位之间用连字符连接(例如:888-1200)。电话的键盘提供了字符于数字之间的映射关系,如下所示: 2 A、B和C 3 D、E和F 4 G、H和I 5 J、K和L 6 M、N和O 7 P、R和S 8 T、U和V 9 W、X和Y Q 和 Z 没有映射到键盘,而连字符不需要被拨打并且可以根据需要添加和删除。TUT-GLOP 的标准形式是 888-4567,310-GINO 的标准形式是310-4466,3-10-10-10的标准形式也是 310-1010。 如果两个电话号码有相同的标准形式,那么这两个电话号码是相同的。-commercial units need easy to remember telephone numbers, there are ways to allow more telephone numbers easy to remember. For example, telephone numbers can be written words or phrases, such as pseudodynamic- GLOP can represent the University of Waterloo calls. Sometimes numbers is only part of the written word. if the fight 310-GINO will be able to GINO pizza shop ordering pizza. Another phone number so easy to remember the method is to use a numbe
    2022-01-31 01:21:55下载
    积分:1
  • 696516资源总数
  • 106446会员总数
  • 9今日下载