Getting the process handle from 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). 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.


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