I have a windows message loop. I need to determine when the screen is activated. Is there a windows message?
detect the power state change contains the C # path, I need a C ++ way using the win32 API.
If there is no Windows message, how can I poll the power status of the screen monitor?
A Windows WM_POWERBROADCAST message appears . There, the Windows API has great support for power management. For more information, see Windows Power Management on MSDN.
Windows ( Windows 8) GUID_CONSOLE_DISPLAY_STATE GUID_MONITOR_POWER_ON
Source: https://habr.com/ru/post/1783151/More articles:Кэширование Appfabric: поставщик конфигурации как единая точка отказа - cachingArray example in java - javaScala plugin for IntelliJ IDEA 10 that does not detect simple errors? - scalaHow to get Annotate gem to work? - ruby-on-railsWhy has Ie7 mysteriously cut off the upper bound of these notification items? - htmlWhat are the MD5 vulnerabilities and how can they be fixed? - cryptographyAccess to CSR extension stack in M2Crypto - pythonRaster font rendering and kerning - c ++problem with events in jquery - jqueryColumn sorting in wxpython? - pythonAll Articles