Pas de dépendances
#include <windows.h> #include <tchar.h> int main() { PROCESS_INFORMATION processInformation; STARTUPINFO startupInfo; memset(&processInformation, 0, sizeof(processInformation)); memset(&startupInfo, 0, sizeof(startupInfo)); startupInfo.cb = sizeof(startupInfo); CreateProcess(_T("C:\\Windows\\system32\\calc.exe"),NULL,NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &startupInfo, &processInformation); WaitForSingleObject( processInformation.hProcess, INFINITE ); CloseHandle( processInformation.hProcess ); CloseHandle( processInformation.hThread ); printf("Fini !\n"); return 0; }
No explanations yet.