salut
je n'arrive pas à killer un process lancé avec ShellExecuteEx
ma structure :
ma commande pour killer
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 SHELLEXECUTEINFO bfghijlnos; memset(&bfghijlnos, 0, sizeof(bfghijlnos)); bfghijlnos.cbSize = sizeof(bfghijlnos); bfghijlnos.fMask = SEE_MASK_NOCLOSEPROCESS; //bfghijlnos.fMask = 0; bfghijlnos.hwnd = 0; bfghijlnos.lpVerb = "open"; bfghijlnos.lpFile = array4[0]; bfghijlnos.lpParameters = parameter; bfghijlnos.lpDirectory = NULL; bfghijlnos.nShow = SW_HIDE; //bfghijlnos.nShow = SW_SHOW; bfghijlnos.hInstApp = 0; bfghijlnos.hProcess = NULL;
mais ça ne kill rien du tout
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 TerminateProcess(bfghijlnos.hProcess, 0); CloseHandle(bfghijlnos.hProcess);
quelqu'un aurait une idée ou une routine de debiggage ?
rogerio
Partager