Hi,
Does anyone know what NTxxx or other call UserMode uses to Open a
TargetDirectory since that option is not available in NtCreateFile?
Thanks,
Don
Hi,
Does anyone know what NTxxx or other call UserMode uses to Open a
TargetDirectory since that option is not available in NtCreateFile?
Thanks,
Don
NtSetInformationFile. Set up FileRenameInformation.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don
Sent: Friday, June 03, 2005 10:04 AM
To: ntfsd redirect
Subject: [ntfsd] How does user mode open a TargetDirectory
Hi,
Does anyone know what NTxxx or other call UserMode uses to Open a
TargetDirectory since that option is not available in NtCreateFile?
Thanks,
Don
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Oh, so the NtSetInformationFile calls IoCreateFile AND IoSetInformation. Is
that right?
Thanks,
DOn
“Tony Mason” wrote in message news:xxxxx@ntfsd…
NtSetInformationFile. Set up FileRenameInformation.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don
Sent: Friday, June 03, 2005 10:04 AM
To: ntfsd redirect
Subject: [ntfsd] How does user mode open a TargetDirectory
Hi,
Does anyone know what NTxxx or other call UserMode uses to Open a
TargetDirectory since that option is not available in NtCreateFile?
Thanks,
Don
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
if you want to trap directory creation NtCreateFile is the way where you
have to segregate the File Type on the Basis of File Attributes.
#define FILE_ATTRIBUTE_DIRECTORY 0x00000010 // winnt
if you want to trap directory Open then there are two ways
1)DirectoryControl(Irp I)
2)NtCreateFile
Here also you have to use File Attributes. for Segregation whether it is a
File or DIR
Also to you can get the Content of the Directory using Next Entry field.
Regards,
Utkarsh S. Dabhade
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Tony Mason
Sent: Friday, June 03, 2005 7:40 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How does user mode open a TargetDirectory
NtSetInformationFile. Set up FileRenameInformation.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don
Sent: Friday, June 03, 2005 10:04 AM
To: ntfsd redirect
Subject: [ntfsd] How does user mode open a TargetDirectory
Hi,
Does anyone know what NTxxx or other call UserMode uses to Open a
TargetDirectory since that option is not available in NtCreateFile?
Thanks,
Don
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
**************************************************
Disclaimer:
The contents of this E-mail (including the contents of the enclosure(s) or attachment(s) if any) are privileged and confidential material of MBT and should not be disclosed to, used by or copied in any manner by anyone other than the intended addressee(s). In case you are not the desired addressee, you should delete this message and/or re-direct it to the sender. The views expressed in this E-mail message (including the enclosure(s) or attachment(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of MBT.
This e-mail message including attachment/(s), if any, is believed to be free of any virus. However, it is the responsibility of the recipient to ensure that it is virus free and MBT is not responsible for any loss or damage arising in any way from its use
**************************************************
I believe that the OP was asking how to generate an IRP_MJ_CREATE with
the SL_OPEN_TARGET_DIRECTORY bit set, although perhaps his question was
worded ambiguously. This is a special case used by the rename logic in
order to create the endpoint of the rename operation prior to the rename
operation itself. Hence, to trigger this open, one performs a rename
operation and this is done using
NtSetInformationFile/FileRenameInformation.
In fact, elaborating on my original response (to what I believe to be
his question) as I recall, if you create hard links, you will see the
same behavior (IRP_MJ_CREATE with the SL_OPEN_TARGET_DIRECTORY bit set
in the I/O stack location).
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Utkarsh DABHADE
Sent: Friday, June 03, 2005 10:53 AM
To: ntfsd redirect
Subject: RE: [ntfsd] How does user mode open a TargetDirectory
if you want to trap directory creation NtCreateFile is the way where you
have to segregate the File Type on the Basis of File Attributes.
#define FILE_ATTRIBUTE_DIRECTORY 0x00000010 // winnt
if you want to trap directory Open then there are two ways
1)DirectoryControl(Irp I)
2)NtCreateFile
Here also you have to use File Attributes. for Segregation whether it
is a
File or DIR
Also to you can get the Content of the Directory using Next Entry field.
Regards,
Utkarsh S. Dabhade
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Tony Mason
Sent: Friday, June 03, 2005 7:40 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How does user mode open a TargetDirectory
NtSetInformationFile. Set up FileRenameInformation.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don
Sent: Friday, June 03, 2005 10:04 AM
To: ntfsd redirect
Subject: [ntfsd] How does user mode open a TargetDirectory
Hi,
Does anyone know what NTxxx or other call UserMode uses to Open a
TargetDirectory since that option is not available in NtCreateFile?
Thanks,
Don
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
**************************************************
Disclaimer:
The contents of this E-mail (including the contents of the enclosure(s)
or attachment(s) if any) are privileged and confidential material of MBT
and should not be disclosed to, used by or copied in any manner by
anyone other than the intended addressee(s). In case you are not the
desired addressee, you should delete this message and/or re-direct it to
the sender. The views expressed in this E-mail message (including the
enclosure(s) or attachment(s) if any) are those of the individual
sender, except where the sender expressly, and with authority, states
them to be the views of MBT.
This e-mail message including attachment/(s), if any, is believed to be
free of any virus. However, it is the responsibility of the recipient to
ensure that it is virus free and MBT is not responsible for any loss or
damage arising in any way from its use
**************************************************
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com