Question Locked

Programmazione arrestare un computer Windows con questa API

0 helpful
0 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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 ()
     'Shutdown
     Shell ("C: \ Windows \ System32 \ shutdown.exe -s -f")
    
     'Reboot
      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!

0 replies

No replies were posted before this discussion closed.

This discussion is closed to new replies.