How do I shutdown or restart a remote windows 2003 server using C++ ?
What is the code?
Thanks
posts merged:
make that windows 2000 *
Shutdown Remote win 2k3 server with C++
Started by
JD Fr33l@nc3
, May 22 2008 09:40 AM
1 reply to this topic
#1
Posted 22 May 2008 - 09:40 AM
#2
Posted 13 August 2008 - 10:07 PM
I know this is really late for the question but here's the answer.
That's for anyone else who was wondering. Also, all I did was go into visual c++ and started typing random words that had to do with leaving or quitting and that popped up in the little tooltip box. It's always better to experiment with programming before asking questions. Happy programming!
ExitWindowsEx(EWX_SHUTDOWN | EWX_FORCEIFHUNG, -1);
That's for anyone else who was wondering. Also, all I did was go into visual c++ and started typing random words that had to do with leaving or quitting and that popped up in the little tooltip box. It's always better to experiment with programming before asking questions. Happy programming!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users