KernelSword
驱动牛犊
驱动牛犊
  • 注册日期2007-07-13
  • 最后登录2014-02-20
  • 粉丝5
  • 关注0
  • 积分322分
  • 威望161点
  • 贡献值0点
  • 好评度28点
  • 原创分0分
  • 专家分0分
阅读:2335回复:1

关于windows 7下阻止睡眠的问题

楼主#
更多 发布于:2010-04-06 12:18
按照DDK上的说明,好象不起作用啊,根据阻止不了,在其它系统上是可以的,就是在win7上不行

To fail an IRP_MN_QUERY_POWER request for a system power state, a driver should take the following steps:

Call PoStartNextPowerIrp to indicate that the driver is prepared to handle the next power IRP. (Windows Server 2003, Windows XP, and Windows 2000 only)
Set Irp->IoStatus.Status to a failure status and call IoCompleteRequest, specifying IO_NO_INCREMENT. Do not pass the IRP further down the device stack.
Call IoReleaseRemoveLock to release the previously acquired lock.
Return a failure status from its DispatchPower routine.
QQ:606140 www.kernelsword.com
treeyan
驱动牛犊
驱动牛犊
  • 注册日期2008-04-14
  • 最后登录2013-09-11
  • 粉丝0
  • 关注0
  • 积分50分
  • 威望487点
  • 贡献值0点
  • 好评度3点
  • 原创分0分
  • 专家分1分
沙发#
发布于:2010-04-06 14:33
windows 7 不再支持没有电源管理功能的硬件鸟。
游客

返回顶部