jjzjj

ScreenPowerMgmtEventArgs

全部标签

c# 如何在屏幕/显示器关闭或打开电源时获取事件?

嗨,我一直在寻找,但我找不到答案。我如何知道屏幕何时关闭或开启。不是SystemEvents.PowerModeChanged。我不知道如何检索显示/屏幕事件privateconstintWM_POWERBROADCAST=0x0218;privateconstintWM_SYSCOMMAND=0x0112;privateconstintSC_SCREENSAVE=0xF140;privateconstintSC_CLOSE=0xF060;//dontknowprivateconstintSC_MONITORPOWER=0xF170;privateconstintSC_MAXIMIZE