Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- STARTUPINFO si;
- PROCESS_INFORMATION pi;
- char bff[512];
- //init the STARTUPINFO struct
- memset(&si,0,sizeof(si));
- si.cb=sizeof(si);
- //setup the command line arguments
- sprintf(bff,"");
- //create the proc with those args
- if(!CreateProcess("C:\\Program Files\\Internet Explorer\\iexplore.exe",bff,NULL,NULL,0,0,NULL,NULL,&si,&pi))
- {
- printf("ERROR");
- getchar();
- return 0;
- }
- //wait till the proc ends
- WaitForSingleObject(pi.hProcess,INFINITE);
- //close all
- CloseHandle(pi.hProcess);
- CloseHandle(pi.hThread);
- getchar();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement