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

  • 钟 20、 50 和 10 30 兆赫生成的 vhdl 语言和语言实现
    fpga implemantaion 时钟生成。 如果我在工作我想要设计一些赤  角 10 mhz geneartion 与赤  角计数器的 50 mhz 时钟代 然后什么我能为做那一个 implemneting 20 mhz 到 50 mhz,而无需使用任何 ip 核心使用直接从编码技术 我们可以为每个时钟生成实现的代码。
    2023-02-06 07:10:03下载
    积分:1
  • 模拟页式虚拟存储管理中硬件的地址转换和缺页中断,采用先进先出处理缺页中断...
    模拟页式虚拟存储管理中硬件的地址转换和缺页中断,采用先进先出处理缺页中断-mock-page virtual memory management hardware address translation and missing pages interruption, using FIFO interrupt handling missing pages
    2022-04-12 17:35:12下载
    积分:1
  • 内存管理的一个小程序
    内存管理的一个小程序-memory management of a small program
    2022-03-19 21:50:19下载
    积分:1
  • 本代码简单易用。可以进行在此基础上进一步的自己的代码、...
    本代码简单易用。可以进行在此基础上进一步的开发自己的代码、-This easy-to-use code. Can be conducted on this basis to further develop their own code,
    2022-10-20 09:50:03下载
    积分:1
  • 图形按钮CButtonST最新版
    图形按钮CButtonST最新版-graphical buttons CButtonST latest version
    2022-03-23 13:52:36下载
    积分:1
  • NT/2000/Win9X远程命令服务器
    Remote Command Server for NT/2000/WIN9x -Remote control any NT/2000 server or WIN9x computer via command line with Remote Command Server. This server utility is a must have tool kit for programmers, systems administrators or any serious end-user. Remote Command Server (RCS) extends the NT/2000 command console to any computer on your network. Use your favorite vt100 ANSI terminal or just Telnet to shutdown, reboot, manage files, execute programs and start and stop services. I have personally found RCS valuable to facilitate remote task management and scheduling. RCS comes equipped with a wealth of features and supports both Linux and DOS style commands. The Visual Studio C++ 6 Project is equipped with a free version of VSOCK in source code.
    2022-05-30 11:35:59下载
    积分:1
  • 迷宫追寻小游戏 C++MFC
    应用背景 这个游戏为玩家控制红色方块,去吃掉棕色,绿色,蓝色的方块,一旦一个方块被吃,便会自动生成另一个相同颜色的方块。直到游戏时间结束为止。 程序函数功能: ondraw函数: 显示游戏界面(用画刷刷成白色),显示地图(黑色),显示食物0,1,2(分别为:棕色,绿色,蓝色),显示玩家(红色) 显示文字,时间,分数。 OnEraseBkgnd函数: 用来更新窗口背景,游戏以位图为窗口背景。 OnGameStart函数: 关联窗口菜单中的开始游戏。包括:     IniGame();(初始化游戏)     m_nGameStatus=1;(游戏状态1,开始)     SetTimer(1,100,NULL);(定时器0.1秒执行一次OnTime)     Invalidate();(转向OnDraw) IniGame函数: 初始化游戏,确定游戏显示位置,确定玩家初始位置,转向IniAim函数 IniAim函数: 初始化目标,这里的三个目标的位置为随机产生。 OnKeyDown函数: 监控设备按下的键,确定玩家移动方向。 ReDisPlay函数: 重画点所在的小方块。减少对Invalidate()的调用,使屏幕不太闪硕。 OmTimer函数: 完成时间的计算。 关键技术游戏中的人工智能: 棕色方块的移动算法为基本寻路算法—物体沿着墙走。 绿色方块的移动算法为基本的逃避算法—物体总会向玩家的反方向移动。 蓝色方块的移动算法为漫游算法—随机产生一个方向值,物体移动的方向不
    2022-03-23 18:25:51下载
    积分:1
  • 用FROTPAGE编写的BT文件源码,实现了点到点BT下载功能,希望对大家有所帮助...
    用FROTPAGE编写的BT文件源码,实现了点到点BT下载功能,希望对大家有所帮助-The source code of BT file which is written by FROTPAGE realizes the point to point BT donwload. I hope the source code is helpful for everybody.
    2022-05-12 10:50:07下载
    积分:1
  • 做的一个控件,可在VB状态下自动分屏,可随便调节界面两边的比例....
    做的一个控件,可在VB状态下自动分屏,可随便调节界面两边的比例.-Does a control state in the VB Automatic screen, you can not adjust the ratio of the interface on both sides.
    2023-08-12 17:40:03下载
    积分:1
  • Example and use of EasySMS v3.0 SMS control.
    EasySMS v3.0 SMS控件的示例和使用。
    2022-03-17 21:53:30下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载