A friendly reminder...

Please be sure that you are familiar with the forum rules and guidelines. These are in place to try to maintain a place that we all want to come back to. One specifically I would like to mention is keeping threads on topic. As much as is possible, please do not be afraid to start a new thread if you have a question that shifts even just a little bit in meaning. This will help users searching for solutions, and this will also help a conversation not become confusing to follow.
See more
See less

Run program after laptop lid is opened?

  • Filter
  • Time
  • Show
Clear All
new posts

  • Run program after laptop lid is opened?

    I'd like for a program to run after the laptop lid is opened, but I'm not sure how to do it.

    I have a couple of guesses...maybe run some kind of script, or set something in the Registry?
    Or is there a Special Folder?

    Please let me know if you have URLs for where I can read up on these possibilities,


  • #2
    Use RegisterPowerSettingNotification(GUID_LIDSWITCH_STATE_CHANGE)