Name of file mapped by ZwCreateSection

Hi, All !

I have handle of “section” mapping some file. Is there possible to get
filename of this file ?

S. Kolar (xxxxx@tinysoftware.cz)


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

You must get the file object ofr the mapping and then call the FSD to
get the name.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Stanislav Kolar
Sent: Wednesday, December 19, 2001 7:45 AM
To: NT Developers Interest List
Subject: [ntdev] Name of file mapped by ZwCreateSection

Hi, All !

I have handle of “section” mapping some file. Is there possible to get
filename of this file ?

S. Kolar (xxxxx@tinysoftware.cz)


You are currently subscribed to ntdev as: xxxxx@storagecraft.com 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

Can you say me more ?

Assume that NtCreateSection was called with FileHandle == ‘x’. Now I have
“SectionHandle” and I need original FileHandle to call
ZwQueryObject(ObjectNameInformation…) to get filename of mapped file…

S. Kolar (xxxxx@tinysoftware.cz)
----- Original Message -----
From: “Jamey Kirby”
To: “NT Developers Interest List”
Sent: Wednesday, December 12, 2001 5:00 PM
Subject: [ntdev] RE: Name of file mapped by ZwCreateSection

> You must get the file object ofr the mapping and then call the FSD to
> get the name.
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Stanislav Kolar
> Sent: Wednesday, December 19, 2001 7:45 AM
> To: NT Developers Interest List
> Subject: [ntdev] Name of file mapped by ZwCreateSection
>
>
> Hi, All !
>
> I have handle of “section” mapping some file. Is there possible to get
> filename of this file ?
>
> S. Kolar (xxxxx@tinysoftware.cz)
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
> unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@tinysoftware.cz
> 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

> ZwQueryObject(ObjectNameInformation…) to get filename of mapped file…

This will not work for files for sure - use NtQueryInformationFile instead.

Max


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