Someone know about any API to Shutdown the Computer?
Thanks
Printable View
Someone know about any API to Shutdown the Computer?
Thanks
ExitWindowsEx, see MSDN.
Hopefully you're not trying to write some sort of malware. Are you?
No, i'm not wrinting a malware...
I'm just writing a RAT (Remote Administration Tool), that can be used by a trojan, but is not my intention.
Besides, how can i Kill a Windows Process?
Thanks
TerminateProcess.
Not recommended, however, since the process will not be allowed to complete a shutdown.
Instead, you should find its main window and close it. It's the preferred way. If possible.
You could try searching. I don't do Windows programming, but I think I may have found what you're looking for: http://msdn.microsoft.com/en-us/libr...ll(VS.80).aspx
That's dotNet, C#, C++/CLI, VB dotNet and not C. And certainly not standard C++ either.