C
CRE
Or more exactly, how does one access the windows API to do things like
shutdowns
?
--chris
shutdowns
?
--chris
Or more exactly, how does one access the windows API to do things like
shutdowns
?
CRE said:Or more exactly, how does one access the windows API to do things like
shutdowns
?
Or more exactly, how does one access the windows API to do things like
shutdowns
?
--chris
{
ExitWindowsEx(....
}
Rainer Hausbach said:int main()
IMHO W95/W98/ME only.
Win NT,W2k&XP need adjusted Rights.
Actually, this never works, at least not to shut down the system.
As you indicated, WinNT/2k/XP/2k3 need adjusted rights. You can however
use the code above to log off the current user without additional
effort. And while calling ExitWindowsEx to shut down is ok in Win9x,
you can't actually use it from a Console Application! ^_^
JKop said:Unforgiven posted:
Lies. Shutting down the system was all I ever did when I started out with
Win32 programming.
Lies. Win32 Console Applications have full access to dynamically linked
libraries, namely the Win32 API.
JKop said:Unforgiven posted:
Shutting down the system was all I ever did when I started out with
Win32 programming.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.