Click here to Skip to main content
15,917,174 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Requestion(some changes ) Pin
David Crow27-Aug-08 3:26
David Crow27-Aug-08 3:26 
GeneralRe: Requestion(some changes ) Pin
David Crow27-Aug-08 3:24
David Crow27-Aug-08 3:24 
AnswerRe: Requestion(some changes ) Pin
Varghese Paul M27-Aug-08 0:04
Varghese Paul M27-Aug-08 0:04 
GeneralRe: Requestion(some changes ) Pin
MsmVc27-Aug-08 0:13
MsmVc27-Aug-08 0:13 
QuestionRe: Requestion(some changes ) Pin
David Crow27-Aug-08 3:28
David Crow27-Aug-08 3:28 
QuestionCreateProcess() method Pin
Madan Chauhan26-Aug-08 20:02
Madan Chauhan26-Aug-08 20:02 
AnswerRe: CreateProcess() method Pin
Nibu babu thomas26-Aug-08 20:08
Nibu babu thomas26-Aug-08 20:08 
AnswerRe: CreateProcess() method Pin
Jijo.Raj26-Aug-08 20:30
Jijo.Raj26-Aug-08 20:30 
mmc.exe (Microsoft Management Console) is the host executable that actually runs when you open diskmgmt.msc. So spawn mmc.exe by using CreateProcess(). For instance,

// Startup Info.
STARTUPINFO si;    
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);

// Process Info.
PROCESS_INFORMATION pi;
ZeroMemory( &pi, sizeof(pi) );

// Start the child process. 
CreateProcess( NULL,
               _T("mmc.exe diskmgmt.msc"),
               NULL,
               NULL,
               FALSE,
               0,
               NULL,
               NULL,
               &si,
               &pi );


Well, If you just want to open the DiskManagementConsole, then ShellExecute() can do it more easily.

ShellExecute( 0, _T("open"), _T("diskmgmt.msc"), 0, 0, SW_SHOW );


Regards,
Jijo.

_____________________________________________________

http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

Question[Message Deleted] Pin
ptr_Electron26-Aug-08 19:16
ptr_Electron26-Aug-08 19:16 
AnswerRe: Application crash before the window is displayed Pin
Nibu babu thomas26-Aug-08 19:36
Nibu babu thomas26-Aug-08 19:36 
QuestionRich Edit control Highlight selection color problem Pin
riteshsv26-Aug-08 19:13
riteshsv26-Aug-08 19:13 
QuestionSTL map issue Pin
George_George26-Aug-08 17:31
George_George26-Aug-08 17:31 
AnswerRe: STL map issue Pin
Nibu babu thomas26-Aug-08 19:11
Nibu babu thomas26-Aug-08 19:11 
GeneralRe: STL map issue Pin
George_George26-Aug-08 19:41
George_George26-Aug-08 19:41 
GeneralRe: STL map issue Pin
Nibu babu thomas26-Aug-08 19:58
Nibu babu thomas26-Aug-08 19:58 
GeneralRe: STL map issue Pin
George_George26-Aug-08 23:26
George_George26-Aug-08 23:26 
GeneralRe: STL map issue Pin
Nibu babu thomas26-Aug-08 23:32
Nibu babu thomas26-Aug-08 23:32 
GeneralRe: STL map issue Pin
George_George26-Aug-08 23:34
George_George26-Aug-08 23:34 
GeneralRe: STL map issue Pin
Nibu babu thomas26-Aug-08 23:50
Nibu babu thomas26-Aug-08 23:50 
GeneralRe: STL map issue Pin
George_George27-Aug-08 1:58
George_George27-Aug-08 1:58 
QuestionRPC Client Pin
sunny_vc26-Aug-08 15:44
sunny_vc26-Aug-08 15:44 
AnswerRe: RPC Client Pin
Garth J Lancaster26-Aug-08 17:00
professionalGarth J Lancaster26-Aug-08 17:00 
GeneralRe: RPC Client Pin
sunny_vc27-Aug-08 21:25
sunny_vc27-Aug-08 21:25 
QuestionLimit for vector????? Pin
TooShy2Talk26-Aug-08 15:29
TooShy2Talk26-Aug-08 15:29 
AnswerRe: Limit for vector????? Pin
Nibu babu thomas26-Aug-08 19:06
Nibu babu thomas26-Aug-08 19:06 

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.