Is it possible to detect when a laptop\'s lid is open or closed? From what I\'ve read, this isn\'t possible, but SO has helped me with the impossible before.
The on
Use WM_POWERBROADCAST. Here's a link that can help you: Lid Close Action change notification