1
I am using the following code to shut down the computer via Delphi program:
//Adicionar à cláusula Uses, Shellapi e digitar os parâmetros abaixo no clique de um botão por exemplo:
// Desliga o Windows
ExitWindowsEx(EWX_SHUTDOWN, 0);
But the computer does not turn off, it just closes the session and opens a new.
Is there any alternative for the computer to shut down fully?
It worked perfectly, thank you very much.
– lukkicode
This @Denied is really mad. Thank you!
– Gato de Schrödinger