IRP_MJ_QUERY_INFORMATION for FILE_MODE_INFORMATION

Hi All -

I’m trying to get my driver working with CreateFileMapping. One of the
IRPs I get is IRP_MJ_QUERY_INFORMATION for FILE_MODE_INFORMATION. I’m
trying to figure out what I’m supposed to give it back… I can’t seem to
find any doc on this. (Surprise!).

Does Anyone have any hints?

Thanks - Greg


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

Sorry to clutter the list with stupid questions (again), I found the answer
to this one in Nagar’s book on page 485; the answer is that you never need
to do anything with this, just complete it with STATUS_SUCCESS.

I don’t know how I missed this before. Hmmm.


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

What is really strange is how you got this in the first place. Like a
handful of other query types (FilePositionInformation is one),
FileModeInformation is trapped and handled at NtQuery/SetInformationFile
without calling the stack since it is generic and answerable from the
fileobject itself.

(no, that’s not the right implementation, but it doesn’t really matter:
none of the local filesystems in Windows implement it directly, and will
all fail it)

-----Original Message-----
From: xxxxx@filetek.com [mailto:xxxxx@filetek.com]
Sent: Tuesday, July 31, 2001 6:01 PM
To: File Systems Developers
Subject: [ntfsd] Re: IRP_MJ_QUERY_INFORMATION for FILE_MODE_INFORMATION

Sorry to clutter the list with stupid questions (again), I found the
answer
to this one in Nagar’s book on page 485; the answer is that you never
need
to do anything with this, just complete it with STATUS_SUCCESS.

I don’t know how I missed this before. Hmmm.


You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.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