process to process id

Hi all

I need forward to usermode information about open IRP. One information
I need is process identification. On Win2k I can use
IoGetRequestorProcessId(IN PIRP Irp). But I need this functionality
on WinNT4 too. There is IoGetRequestorProcess but this is
useless - I need process id. Is there way to convert PEPROCESS
to process id? Preferably one which works on WinNT4 and Win2k.

Petr Balas


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

Petr,

On nt4 I’ve observed irp’s come into my lanman rdr filter in the process
context of the workstation service (as a result of another process accessing
remote files). I can’t remember if this was during during irp_mj_create or
some other irp. In any case, be aware that the process id might not quite be
the process id you’re looking for.

good luck,
Marc

-----Original Message-----
From: Petr Balas [mailto:xxxxx@balas.cz]
Sent: Wednesday, January 17, 2001 10:09 AM
To: File Systems Developers
Subject: [ntfsd] process to process id

Hi all

I need forward to usermode information about open IRP. One information
I need is process identification. On Win2k I can use
IoGetRequestorProcessId(IN PIRP Irp). But I need this functionality
on WinNT4 too. There is IoGetRequestorProcess but this is
useless - I need process id. Is there way to convert PEPROCESS
to process id? Preferably one which works on WinNT4 and Win2k.

Petr Balas


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


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