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

  • 与自然语言理解结合的算盘源码,相信会有用的。
    与自然语言理解结合的算盘源码,相信会有用的。-With the combination of natural language understanding source calculations, I believe will be useful.
    2023-03-27 20:30:04下载
    积分:1
  • 本软件用VS 2005 + QT4.4.3 + QextSerialPort写成,界面模仿串口调试助手...
    本软件用VS 2005 + QT4.4.3 + QextSerialPort写成,界面模仿串口调试助手-本软件用VS 2005+ QT4.4.3+ QextSerialPort写成,界面模仿串口调试助手
    2022-02-06 12:43:02下载
    积分:1
  • 多线程编程使用方法
    多线程编程使用方法- Multi-thread programming application method
    2023-06-21 15:00:04下载
    积分:1
  • 支持高级的拷贝/粘贴和拖放功能
    支持高级的拷贝/粘贴和拖放功能-support for the High copy/paste and drag-and-drop function
    2022-01-21 20:42:41下载
    积分:1
  • 自己做的一些小编程,里面很多基础知识!堆新手又一定帮助!...
    自己做的一些小编程,里面很多基础知识!堆新手又一定帮助!-Themselves to do some small programming, which a lot of basic knowledge! Definitely help stack novice!
    2022-03-17 22:27:02下载
    积分:1
  • reversi
    reversi
    2022-03-10 23:13:58下载
    积分:1
  • 优龙FS2410 的串口读写驱动,可以作为串口读写的参考
    优龙FS2410 的串口读写驱动,可以作为串口读写的参考-Liuzhou excellent FS2410 serial read and write drives can be used as reference for serial read and write
    2022-07-03 22:45:45下载
    积分:1
  • 微积分的数值计算函数,包括: double composite_simpson(double(*f)(double),double a,double b,int...
    微积分的数值计算函数,包括: double composite_simpson(double(*f)(double),double a,double b,int n) double romberg(double(*f)(double),double a,double b,double eps,int max_it) double gauss_legendre(double(*f)(double),double a,double b) double central_difference(double(*f)(double),double a, double h,double eps, int max_it) double runge_kuta(double(*f)(double,double),double x[],double y[],double h,int n) double proved_euler(double(*f)(double,double),double x[],double y[],double h,int n) double adams(double(*f)(double,double),double x[], double y[],double h,int n) double montecar(double(*f)(double),double a,double b,double ub,double eps,int k,int n) float uniform_random()-calculus numerical calculation functions, including : double composite_simpson (double (* f) (double), a double, double b, int n) double Romberg (double (* f) (double), a double, double b, double eps, int max_it) double gauss_legendre (double (* f) (double), a double, double b) double central_difference (double (* f) (double), a d
    2022-10-24 10:40:02下载
    积分:1
  • 这是我写的一个简单的小程序,比较简短。主要功能是给我们…
    这是本人写的一个简单小程序,比较简短。主要功能就是用VB写的一个闹钟程序 -This is I wrote a simple small program, relatively brief. Main function is to use VB to write an alarm clock program
    2023-03-26 13:40:03下载
    积分:1
  • EM 二维时域有限差分法斗篷
    Matlab 程序代码是用 FDTD 方法计算二维斗篷模拟。您可以直接运行该代码。该文件包括主要代码和理论的 EM 斗篷的 word 文件。现在,与其他人共享。我希望它能提供一些帮助,为你的研究工作在这个领域中。
    2022-12-10 19:55:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载