Re: End Processes

new topic     » goto parent     » topic index » view thread      » older message » newer message
dcole said...

Thank you Andreas,

But I don't know how to wrap these Apis.

Don Cole

Hallo

At least taskkill is no API Call.

It's an commandline tool that comes with Windows (I think since WinXP). You can try it in the Windows Console. It's %WINDIR%\system32\taskkill.exe (and so normally in the %PATH%)

Example:

taskkill /f /im notepad.exe

this will terminate "all" tasks of notepad.exe.

So a

system("taskkill /f /im notepad.exe",2) 

should do it.

On pre XP Systems (NT,2000) the command was kill.exe. For Win9.x i don't know it.

I hope this helps you.

Andreas

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu