LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to find out what processes are executing in Win2k

I am trying to determine if a given background process is running in Win2k. It is a device driver I use for communications that does not create a window, so I cannot use the vi's that look for window names. Obviously, the program name does not show up in the toolbar, either. I know that the Win API has functions for getting this information, but the Microsoft site is horrible for finding stuff unless you know specific keywords and I haven't had any luck finding my information there.

Thanks in advance,
Larry
0 Kudos
Message 1 of 7
(3,116 Views)
"lars" wrote in message
news:506500000008000000B3670000-1031838699000@exchange.ni.com...
> I am trying to determine if a given background process is running in
> Win2k.

Larry,

One way is to press CTRL-ALT-DEL, then select the Task Manager from the
window that appears. All the running processes will be listed on the
Processes tab.

Andy
0 Kudos
Message 2 of 7
(3,116 Views)
I guess I should have clarified: I need a programatic solution, hence the need to access the API.

Larry
0 Kudos
Message 3 of 7
(3,116 Views)
"lars" wrote in message
news:50650000000500000050B60000-1031838699000@exchange.ni.com...
> I guess I should have clarified: I need a programatic solution, hence
> the need to access the API.

Then take a look at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/bas
e/enumerating_all_processes.asp

HTH,
Andy
0 Kudos
Message 4 of 7
(3,116 Views)
"lars" wrote in message
news:50650000000500000050B60000-1031838699000@exchange.ni.com...
> I guess I should have clarified: I need a programatic solution, hence
> the need to access the API.

Then take a look at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/bas
e/enumerating_all_processes.asp

HTH,
Andy
0 Kudos
Message 5 of 7
(3,116 Views)
Hey Andy,

For some reason, I am unable to access these pages. It says that they are unavailable.
J.R. Allen
0 Kudos
Message 6 of 7
(3,116 Views)
"JRA" wrote in message
news:50650000000500000083B60000-1031838699000@exchange.ni.com...
> Hey Andy,
>
> For some reason, I am unable to access these pages. It says that they
> are unavailable.

Probably because the single url was broken up by my news poster into 2
lines. If you combine the 2 lines into one you should be OK.

Another option, go to http://msdn.microsoft.com and search for
EnumProcesses. That is the API that lists all processes. The other (longer)
url is to a page the describes how to use the api (with sample) and
describes some wrapper functions in PSAPI.DLL that makes it easier. One
thing to note is that this API will not work on Win 95/98/Me. For these,
there is another option, but I can not rem
ember what it is. I suspect if you
search on msdn you will find something.

Andy
0 Kudos
Message 7 of 7
(3,116 Views)