killer un process ouvert avec ShellExecuteEx
salut
je n'arrive pas à killer un process lancé avec ShellExecuteEx
ma structure :
Code:
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; |
ma commande pour killer
Code:
1 2 3
|
TerminateProcess(bfghijlnos.hProcess, 0);
CloseHandle(bfghijlnos.hProcess); |
mais ça ne kill rien du tout
quelqu'un aurait une idée ou une routine de debiggage ?
rogerio