Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <tchar.h>
- #include <iostream>
- using namespace std;
- int main ()
- {
- SHELLEXECUTEINFO rSEI ={0};
- rSEI.cbSize=sizeof( rSEI );
- rSEI.lpVerb= "open";
- rSEI.lpFile= "calc.Exe";
- rSEI.lpParameters= 0;
- rSEI.nShow = SW_NORMAL;
- rSEI.fMask = SEE_MASK_NOCLOSEPROCESS;
- ShellExecuteEx( &rSEI );
- WaitForSingleObject(rSEI.hProcess,INFINITE);
- int msgboxID = MessageBox(NULL, "Fai click per proseguire.",
- "Processo terminato", 0x30L );
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement