阅读:2335回复:1
关于windows 7下阻止睡眠的问题
按照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. |
|
|
沙发#
发布于:2010-04-06 14:33
windows 7 不再支持没有电源管理功能的硬件鸟。
|
|