Reputation: 421
What are the Windows 7 API calls to cause the power key to sleep rather than shutdown?
I do not need advice about how to use the Windows Control Panel. This is a programming question.
How would one write code to do this?
Upvotes: 1
Views: 118
Reputation: 141703
This MSDN forum post has the exact same question with the correct answer.
Upvotes: 1