RegisterPowerSettingNotification use in Delphi
问题 How to use the RegisterPowerSettingNotification in conjuction with GUID_MONITOR_POWER_ON in Delphi XE2? 回答1: You have to call RegisterPowerSettingNotification with the desired GUID Power Setting GUIDs to registers the application to receive power setting notifications for a specific power setting event, if not needed anymore the call UnregisterPowerSettingNotification. A delphi example could look like this: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics,