Getting the process handle from a process id

I’ve tried using NtOpenProcess to open a handle to another process using
that process’s ID without success. Both processes are under the same logon
user context (eg. opening the process handle to, say, a “notepad”
application’s process id under the current logon user). Anyone has any
working example or code snippet that can demonstrate how this can be done
properly? Or is this approach wrong? Need like to hear from you.

Regards.


Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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