Im trying to make an app that can put windows 7 to sleep,
I have been looking at WM_Messages, but cant seem to find one that does the jobb.
I can use ether C++ or Delphi to make the app if there it makes any difference.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use SetSuspendState function which is in powrprof.dll: