RE: [ntfsd] : RE: [ntfsd] How can i get the file name in SfCreate routine?

I would recommend that you upgrade.

Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no rights

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@lenovo.com
Sent: Friday, January 28, 2005 1:46 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] ???: RE: [ntfsd] How can i get the file name in SfCreate routine?

My IFSKit is Windows2000 version.

Best Regards

Ken Wang

“Neal Christiansen”
ft.com>
???ˣ? ???ͣ?
xxxxx@lis ???⣺ RE: [ntfsd] How can i get the file name in SfCreate routine?
ts.osr.com

2005-01-26 14:16
??? ?? “Windows File
Systems Devs Interest
List”

Ken,

What version of the IFSKit do you have? All version of sfilter since XP
contain a routine called “SfDisplayCreateFileName”. This routine will
show you how to get the name of the file during create. There have been
a couple of bugs fixed in this routine so a later version of the IFSKit
would be better.

The reason the name can be NULL is because this could be a VOLUME open
or it could be a relative open. See if there is a RelatedFileObject; if
not then it is a volume open. If yes, it is a relative open to the
related file object (reopening the same file).

Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
rights

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@lenovo.com
Sent: Tuesday, January 25, 2005 6:07 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How can i get the file name in SfCreate routine?

Hello,

I am developing a file system filter driver.I want to open a file in
SfCreate routine during IRP_MJ_CREATE request and
save the relative path to my log file.

How can i get the file name ?

NTSTATUS SfCreate(…)
{
PIO_OBJECT_LOCATION IrpSp;
IrpSp = IoGetCurrentIrpStackLocation(Irp);

DbgPrint( “FileName is %ws\n”, IrpS->FileObject->FileName.Buffer );

// the value of IrpS->FileObject->FileName.Buffer is null. Why?




}

Any ideas will be very helpfull.

Best xxxxx@lists.osr.com

Ken Wang


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

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


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to $subst(‘List.Name’) as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to $subst(‘Email.UnSub’)