Is there a way to capture the physical power button press event to respond to this event? i.e:.
Push button -> My program catches the event -> My program performs action.
My goal is to write a program / service in C # that will listen to the power button event, and then open the βAsk me what to doβ dialog box (as in the days of Windows XP).
source
share