Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Process in C/C++

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Can anyone please help me...

I have to launch a program through C/C++ and get its' handle. I tried WinExec but it doesn't return the handle. I am now trying CreateProcess but can't get the syntax right. Can anyone give me the proper syntax on how to create a new process and get its' handle. Thanks...
 
STARTUPINFO si;
PROCESS_INFORMATION pi;
BOOL CreateProcess(
"applicationname", "cmdline", NULL, NULL, NULL,0,NULL,NULL,&si,&pi); John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top