I am looking for a way to get lid status in Windows using C/C++. I want to do certain things when the laptop's lid is down so I am trying to find an interface to read its status.
Unfortunately I haven't found any way to do so. I have tried almost anything I have found on the web but nothing worked.
Any Idea is more than welcome.
Thank you in advance. :-)