0

I am not sure if this belongs on serverfault or superuser.

I would like to override SetThreadExecutionState(ES_DISPLAY_REQUIRED) to be a no-op. How is this accomplished?

Is there some registry setting that can be altered instead of API hooking?

Blocking ES_DISPLAY_REQUIRED will prevent apps from keeping the monitor powered on. I have an application (likely the antivirus) that is preventing some monitors from entering power-save and I think this function is the culprit.

4

1 回答 1

4

在您走得太远之前,您是否已确认它防病毒软件?如果您使用的是 Windows Vista 或 Windows 7,请使用 POWERCFG.EXE /REQUESTS(以管理员身份)进行检查。

此外,链接到此文档的该线程说要使用 POWERCFG.EXE /REQUESTSOVERRIDE 否决 SetThreadExecutionState。

于 2011-01-04T21:44:56.450 回答