TaRaKa Posted July 1, 2004 Share Posted July 1, 2004 in vb theres a function shell() which executes command line instructions im just wondering if theres a smimilar funcion in c++/Win32 and whats the command line instruction to shut down the workstaqtion is it rundll32.exe user32.dll shutdownworkstation Link to comment Share on other sites More sharing options...
0 azcodemonkey Posted July 1, 2004 Share Posted July 1, 2004 ShellExecute or ShellExecuteEx I don't see ShutdownWorkstation in user32.dll. The only way I know of doing it is with either ExitWindowsEx, or InitiateSystemShutdown. I believe that the preferred way is InitiateSystemShutdown as it gives the user a chance to abort by showing the dialog. Link to comment Share on other sites More sharing options...
0 caustiK Posted July 1, 2004 Share Posted July 1, 2004 i think you can do it this way: #include <process.h> system("cls"); with "cls" as whatever command you want Link to comment Share on other sites More sharing options...
0 anthonycara Posted July 1, 2004 Share Posted July 1, 2004 sounds right to me, caustik. Link to comment Share on other sites More sharing options...
0 TaRaKa Posted July 1, 2004 Author Share Posted July 1, 2004 thats alot guys Link to comment Share on other sites More sharing options...
Question
TaRaKa
in vb theres a function shell() which executes command line instructions im just wondering if theres a smimilar funcion in c++/Win32
and whats the command line instruction to shut down the workstaqtion is it
Link to comment
Share on other sites
4 answers to this question
Recommended Posts