Zitat von
freakfly:
Delphi-Quellcode:
hProcess := OpenProcess(PROCESS_QUERY_INFORMATION or PROCESS_VM_READ, FALSE, PID);
res := terminateprocess(hProcess, 0);
Hi,
Du hast vergessen dir das
PROCESS_TERMINATE Recht für deinen
Handle zu holen.
Eventuell brauchst du PROCESS_QUERY_INFORMATION und PROCESS_VM_READ sogar gar nich mal...
Versuchs mal damit:
Delphi-Quellcode:
hProcess := OpenProcess(PPROCESS_TERMINATE or ROCESS_QUERY_INFORMATION or PROCESS_VM_READ, FALSE, PID);
res := terminateprocess(hProcess, 0);
Gruß MuldeR