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

  • DX Dragon book whole source code
    DX龙书的全书代码.经典之作,适合开发DX的程序员-DX Dragon book whole source code
    2023-06-11 16:55:03下载
    积分:1
  • 最好的232通信源码
    最好的232通信源码,非常详细,通过RS232BD与计算机串口通信程序,电缆最好采用原装的-Mitsubishi FX PLC RS232BD computer through serial communication procedures, Cable preferred the original 。
    2022-01-25 23:44:13下载
    积分:1
  • Supersity 软件
    “库存管理是有效监督单元的恒定流入和流出物品的现有库存的过程。这个过程通常涉及控制单元,以防止在清单变得过高,或萎缩到,可以把业务的操作进入危险水平的转移。库存管理主要是关于指定的大小和摆放物品的放置。它需要在设施内或供电网络的多个位置内的不同位置,以保障生产的正常和规划过程中对随机干扰运行的材料或物品。库存管理的范围还涉及补货时间之间的细纹,承载库存,资产管理,库存预测,存货计价,未来价格的预测,库存,质量管理和需求预测可用空间成本“。
    2022-10-30 04:55:02下载
    积分:1
  • 随机抽奖小程序
    资源描述 资源描述 晚会的抽奖,活动抽奖品,随机选择出场顺序等等 C#开发,简单易用 抽奖内容为使用者自己指定的图片文件夹 支持全屏,可以调节速度 开发者:179787865
    2022-09-09 21:05:03下载
    积分:1
  • OPC Client
    资源描述OPC Client 基本功能实现源代码,使用VC++编写,在VS2005下编写,界面比较简单,有注释,可以参考注释修改代码或者参考代码,没有多余功能,简介清楚,容易移植。
    2023-06-11 08:35:19下载
    积分:1
  • engage database friends, and others, should be commended!
    搞数据库的朋友,千万别错过了,值得推荐!-engage database friends, and others, should be commended!
    2023-08-17 21:55:09下载
    积分:1
  • C++编程实现系统的定时关机、重启、注销
    C++编程实现系统的定时关机、重启、注销-C++ Programming System Timing shutdown, restart, write-offs
    2022-02-04 09:27:34下载
    积分:1
  • 使用视频捕捉程序
    利用Delphi开发的视频捕获程序-use video capture procedure
    2023-04-27 18:50:03下载
    积分:1
  • 一个图形码系统设计SSD4 QP1
    ssd4 qp1 design of a graphic yards system
    2022-02-06 05:12:51下载
    积分:1
  • The Duine Framework is a (collection of) software libraries that allows develope...
    The Duine Framework is a (collection of) software libraries that allows developers to create prediction engines for their own applications. A prediction engine is a component that predicts how interested individual users are in pieces of information. Such predictions can be used to personalise information to users, specifically in recommending to users what information is and is not of interest to them. Duine is the Irish Gaelic word for person and is pronounced as “dinne” (diner without an ‘r’). Duine has been developed by the Telematica Instituut/Novay and is based on scientific research on personalisation and specifically into recommender systems. The scientific research results on which the Duine software is based are available at the Telematica Instituut/Novay, you can download the pdf here
    2022-01-22 06:50:58下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载