// WinExec("notepad.exe",SW_SHOW); /* SHELLEXECUTEINFO execInfo={0}; execInfo.cbSize=sizeof(execInfo); execInfo.fMask=SEE_MASK_NOCLOSEPROCESS ; execInfo.lpFile="notepad.exe"; execInfo.nShow=SW_SHOW; ShellExecuteEx(&execInfo); WaitForSingleObject(execInfo.hProcess,INFINITE); MessageBox(0,"Process end!","ternsoft.com",0); */ /* STARTUPINFO si={0}; si.cb=sizeof(si); si.dwFlags=STARTF_USESHOWWINDOW; si.wShowWindow=SW_SHOW; PROCESS_INFORMATION pi={0}; CreateProcess("c:\\windows\\notepad.exe",NULL,NULL,NULL,FALSE,NULL,NULL,NULL,&si,&pi); WaitForSingleObject(pi.hProcess,INFINITE); MessageBox(0,"Process end!","ternsoft.com",0); CloseHandle(pi.hProcess); CloseHandle(pi.hThread); */ /* system("notepad.exe"); MessageBox(0,"Process end!","ternsoft.com",0); */