Good afternoon, colleagues!
How do I know the button was pressed or not on the system unit to turn off the computer.
Thank you with respect.
Dig in the direction of WM_QUERYENDSESSION, maybe something you will find in Google. Here is a description of WinAPI shutdown. But, I think that a driver is needed here to get information from hardware, C # will hardly help you.
Source: https://ru.stackoverflow.com/questions/293731/
All Articles