Answer by Joe Castro for RegisterPowerSettingsNotification C# pinvoke
I think what you've done with the RegisterPowerSettingNotification is cause Windows to include messages for WM_POWERBROADCAST to your WndProc, but you still need to actually hook the WndProc as well.It...
View ArticleRegisterPowerSettingsNotification C# pinvoke
I am trying to detect when the laptop lid opens and closes, should be real simple. I can register that event properly it seems, but then I don't get notification when I close my laptop window.Here's...
View Article