in reply to Re: End a process in the Task manager
in thread End a process in the Task manager
I get the process id of the current process. But what if I want to kill some other process? For example If I open an Excel application and want to forcefully kill that process, how do i get the PID of it. Please send me some sample code to do it.use Win32::API; Win32::API->Import("kernel32", "int GetCurrentProcessId()"); $PID = GetCurrentProcessId();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: End a process in the Task manager
by spurperl (Priest) on Jun 03, 2005 at 10:21 UTC | |
by Nalina (Monk) on Jun 03, 2005 at 11:12 UTC | |
by spurperl (Priest) on Jun 03, 2005 at 11:16 UTC |