Computer Science Canada Task Manager in VB? |
Author: | HazySmoke)345 [ Sat Dec 31, 2005 9:59 pm ] | ||
Post subject: | Task Manager in VB? | ||
Since a virus busted the task manager in my Windows 2000. I now have no defence against the annoying spywares that's ticking in my computer. So, one day, this weird idea came to me and I want to make a task manager myself. The API function TerminateProcess should do the job on ending the processes, but how do you find all the processes that's running? And, also, the syntax for Terminate Process looks like this:
Where am I supposed to get the "hProcess" value? |
Author: | Brightguy [ Wed Jan 04, 2006 10:33 pm ] | ||
Post subject: | Re: Task Manager in VB? | ||
You can use the EnumProcesses function to get a list of all the process identifiers, and you can easily find example code on the net (although I've never used it). Here's a small example on how to get a pHandle. It'll search for a window with the name "Calculator", and terminate it if found.
|
Author: | HazySmoke)345 [ Thu Jan 05, 2006 12:46 pm ] |
Post subject: | |
Thanks so much. +11 bits. ![]() |