Problem on Process ID (PID)

To all:

I was trying to use OpenProcess function, but
one of its parameter is a process ID to a
certain process. Im interested on the process ID
of “Explorer.exe” process. How can I get it? What function do I have to use?

Thanks in advance;

  • Ricky -

Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi Ricky,

see Matt Pietrek’s MSDN Article Under Hood
“August 1996 issue of Microsoft Systems Journal”.

or search in MSDN for PSAPI.DLL

Hope this helps

Thomas

-----Original Message-----
From: Ricky Villegas [mailto:xxxxx@hotmail.com]
Sent: Donnerstag, 1. M?rz 2001 11:21
To: NT Developers Interest List
Subject: [ntdev] Problem on Process ID (PID)

To all:

I was trying to use OpenProcess function, but
one of its parameter is a process ID to a
certain process. Im interested on the process ID
of “Explorer.exe” process. How can I get it? What function do
I have to use?

Thanks in advance;

  • Ricky -


Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.


You are currently subscribed to ntdev as: xxxxx@all-for-one.de
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Use:

BOOL EnumProcesses(
DWORD *lpidProcess, // array of process identifiers
DWORD cb, // size of array
DWORD *cbNeeded // number of bytes returned
);

Then use the processs id’s to locate the “explorer.exe”.

Don Burn
Windows 2000 Device Driver and Filesystem consulting

----- Original Message -----
From: “Ricky Villegas”
To: “NT Developers Interest List”
Sent: Thursday, March 01, 2001 5:20 AM
Subject: [ntdev] Problem on Process ID (PID)

> To all:
>
> I was trying to use OpenProcess function, but
> one of its parameter is a process ID to a
> certain process. Im interested on the process ID
> of “Explorer.exe” process. How can I get it? What function do I have to
use?
>
> Thanks in advance;
> - Ricky -
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@acm.org
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com