Click here to Skip to main content
15,891,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRetrieve prompt message in a file from command MsDos Pin
youssef8-Aug-02 23:11
youssef8-Aug-02 23:11 
GeneralRe: Retrieve prompt message in a file from command MsDos Pin
Hans Ruck9-Aug-02 2:14
Hans Ruck9-Aug-02 2:14 
GeneralSave informations with MFC Pin
Mic8-Aug-02 22:53
Mic8-Aug-02 22:53 
GeneralRe: Save informations with MFC Pin
Tomasz Sowinski9-Aug-02 1:30
Tomasz Sowinski9-Aug-02 1:30 
GeneralWindows Shutdown from VC Pin
Nick Young8-Aug-02 22:20
Nick Young8-Aug-02 22:20 
GeneralRe: Windows Shutdown from VC Pin
Brian Azzopardi8-Aug-02 22:34
Brian Azzopardi8-Aug-02 22:34 
GeneralRe: Windows Shutdown from VC Pin
JohnJ9-Aug-02 1:11
JohnJ9-Aug-02 1:11 
GeneralRe: Windows Shutdown from VC Pin
Daniel Lohmann9-Aug-02 6:02
Daniel Lohmann9-Aug-02 6:02 
To powerdown the PC you need to call ExitWindowsEx(). (The more fance InitiateSystemShutdown(Ex) API is not able to powerdown a machine Mad | :mad: )

You need to enable the SE_SHUTDOWN_NAME privilege first using AdjustTokenPrivileges().

However, if you are not that much interested in the details, but just want to put it to work, take a look at the down.exe command line tool from my LS-Tools freeware collection (Link below). You can just spawn it as external program and it also allows you to suspend or hibernate the machine and much more things.

--

Daniel Lohmann

http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there Big Grin | :-D )
GeneralFont problem with RUSSIAN CHARSET in dialog Pin
miro_novotny8-Aug-02 21:46
miro_novotny8-Aug-02 21:46 
GeneralVC++ 6.0 projects and ClearType antialiasing Pin
Aggtaa8-Aug-02 20:25
Aggtaa8-Aug-02 20:25 
GeneralRe: VC++ 6.0 projects and ClearType antialiasing Pin
Shog99-Aug-02 4:41
sitebuilderShog99-Aug-02 4:41 
GeneralRE: VBScript compilation problem Pin
Anonymous8-Aug-02 19:39
Anonymous8-Aug-02 19:39 
GeneralRe: RE: VBScript compilation problem Pin
Jon Hulatt9-Aug-02 1:17
Jon Hulatt9-Aug-02 1:17 
GeneralCDialogBar Initialization Pin
JennyP8-Aug-02 19:09
JennyP8-Aug-02 19:09 
GeneralRe: CDialogBar Initialization Pin
Shog98-Aug-02 19:40
sitebuilderShog98-Aug-02 19:40 
GeneralPopup menu Pin
Vijayalakshmi8-Aug-02 18:49
Vijayalakshmi8-Aug-02 18:49 
GeneralRe: Popup menu Pin
Steen Krogsgaard9-Aug-02 0:23
Steen Krogsgaard9-Aug-02 0:23 
Generalrecv() function Pin
zecodela8-Aug-02 17:25
zecodela8-Aug-02 17:25 
GeneralRe: recv() function Pin
Nish Nishant8-Aug-02 17:34
sitebuilderNish Nishant8-Aug-02 17:34 
GeneralRe: recv() function Pin
zecodela8-Aug-02 20:17
zecodela8-Aug-02 20:17 
GeneralRe: recv() function Pin
Brian Azzopardi8-Aug-02 22:19
Brian Azzopardi8-Aug-02 22:19 
GeneralRe: recv() function Pin
D Satya9-Aug-02 1:27
D Satya9-Aug-02 1:27 
QuestionFile join problem? Pin
chen8-Aug-02 16:31
chen8-Aug-02 16:31 
AnswerRe: File join problem? Pin
Nish Nishant8-Aug-02 17:28
sitebuilderNish Nishant8-Aug-02 17:28 
AnswerRe: File join problem? Pin
Jason Henderson8-Aug-02 17:45
Jason Henderson8-Aug-02 17:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.