hi!
das mit dem timer hab ich jetzt schon hinbekommen, nur ich kenn den neuen Prozess nicht killen!
STARTUPINFO sinfo;
PROCESS_INFORMATION pinfo;
ZeroMemory( &sinfo, sizeof(sinfo) ); //keine Ahnung
sinfo.cb = sizeof(sinfo); //was diese 3 Zeilen
ZeroMemory( &pinfo, sizeof(pinfo) ); //bedeuten... (Aus Doku abgeguckt...)
if(!CreateProcess(m_SWZielort, NULL, NULL, NULL, FALSE, NULL, NULL, NULL, &sinfo, &pinfo))
{
return;
}
Sleep(1000);
TerminateThread(&pinfo.hThread, GetExitCodeThread(&pinfo.hThread, &pinfo.dwThreadId));
//oder:
TerminateProcess(&pinfo.hProcess, GetExitCodeProcess(&pinfo.hProcess, pinfo.dwProcessId));
//hab beides schon (erfolglos) ausprobiert!