Programmazione arrestare un computer Windows con questa API

By a.maury1704 ·
Tags: Community
Hello my name is Maurizio
I am writing because I found it very interesting that your article on how to start; Stop and Pause the PC using the Windows API.
But I do not deny that after the retry several times to change the formulas still can not get anything because you Reported.
I also thought that since I use an operating system 32-bit and 10 Wiindows perhaps from Old XP anything has changed definitely.
Kindly you would not be able to give me a hand about to be able to get what I want thanks.
I await your instructions, in the meantime I offer you my most sincere greetings from A.Maurizio

(P.s) I do not deny that I tried to use this technique using VBA such as:

Sub Test ()
     Shell ("C: \ Windows \ System32 \ shutdown.exe -s -f")
      Shell ("C: \ Windows \ System32 \ shutdown.exe -r -f")
     'PC Lock -OK
     Shell ("rundll32.exe user32.dll, LockWorkStation")
     'Disconnessine User
     Shell ("C: \ windows \ system32 \ logoff.exe")
     'StandBy -ok
      Shell ("rundll32.exe powrprof.dll, SetSuspendState")
end Sub

But rather than stop my PC I could not do.
You me what you suggest!

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Share your knowledge

Related Discussions

Related Forums