
Getting active tasks list in VB
Thanks Hiram
Fantastic pointer in the right direction, would it be pushing
friendship to ask if you know a way to list the processes on a remote
machine ID (assuming I had administrator access - which I do)?
Cameron
Quote:
> Have a look at the 'CreateToolhelp32Snapshot' API. It is included in
Win95
> API and later, and NT "5" and later. You can enumerate the running
> processes on the system. Next use 'Process32Next'
and 'Process32First' api
Quote:
> calls to go through each of the items in the process list. They have
a
> pointer to the processentry32 structure which is initialized with the
> process info ie. name, path, exe etc.
> Check out the MSDN article:
> HOWTO: List Running Processes
> Article ID: Q187913
> -Hiram
Quote:
> >Hi
> >doeas anyone know how to get a list of active tasks into VB - I
assume
> >there is an API call you can make since task manager (ctl-alt-del)
> >seems to be able to list running tasks. I need to be able to
> >interrogate the task list of a remote computer to monitor when/if an
> >app has died.
> >Cameron
> >Sent via Deja.com http://www.deja.com/
> >Before you buy.
Sent via Deja.com http://www.deja.com/
Before you buy.