jon bondy
jon bondy

Reputation: 421

Win 7 API to set power key to sleep rather than shutdown

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

Answers (1)

vcsjones
vcsjones

Reputation: 141703

This MSDN forum post has the exact same question with the correct answer.

Upvotes: 1

Related Questions