What are the Windows 7 API calls to cause the power key to sleep rather than shutdo开发者_JAVA技巧wn?
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?
This MSDN forum post has the exact same question with the correct answer.
精彩评论