Hi guys,
The following challenge this time:
My driver is filtering (amongst others) file renames. If a rename is
intercepted, I need to look at the destination file name and see for
example if it’s on the network. Now, suppose I have a drive mapping,
eg., T: is mapped to \server\share). Suppose I rename the file
T:\SomeFolder\SomeFile.Txt to T:\SomeFolder\OtherFile.Txt. In this case
I can get the server name and share name from the fileobject during
IRP_MJ_CREATE. However, in the FileRenameInformation record, the
destination file name refers to the mapped drive letter, and not to the
network location.
What do I need to do to get the network location of a renamed file ?
Best,
Bartjan.
The interesting thing is - the rename can happen ONLY on the same
volume. Therefore if the source is a network path, the destination will be,
too.
In case of a simple rename, the solution is obvious - and you actually
will get the network path.
In case of a fully qualified and relative one - well…
Bartjan Wattel wrote:
Hi guys,
The following challenge this time:
My driver is filtering (amongst others) file renames. If a rename is
intercepted, I need to look at the destination file name and see for
example if it’s on the network. Now, suppose I have a drive mapping,
eg., T: is mapped to \server\share). Suppose I rename the file
T:\SomeFolder\SomeFile.Txt to T:\SomeFolder\OtherFile.Txt. In this case
I can get the server name and share name from the fileobject during
IRP_MJ_CREATE. However, in the FileRenameInformation record, the
destination file name refers to the mapped drive letter, and not to the
network location.
What do I need to do to get the network location of a renamed file ?
Best,
Bartjan.
You are currently subscribed to ntfsd as: xxxxx@alfasp.com
To unsubscribe send a blank email to %%email.unsub%%
–
Kind regards, Dejan M. www.alfasp.com
E-mail: xxxxx@alfasp.com ICQ#: 56570367
Alfa File Monitor - File monitoring library for Win32 developers.
Alfa File Protector - File protection and hiding library for Win32
developers.
Oops… Why did that slip my mind ? Thanks for the eye-opener, Dejan!
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Alfa
Support - Dejan
Sent: donderdag 24 oktober 2002 16:03
To: File Systems Developers
Subject: [ntfsd] Re: Destination file after RENAME
The interesting thing is - the rename can happen ONLY on
the same volume. Therefore if the source is a network path,
the destination will be, too.
In case of a simple rename, the solution is obvious - and
you actually will get the network path.
In case of a fully qualified and relative one - well…
Bartjan Wattel wrote:
> Hi guys,
>
> The following challenge this time:
>
> My driver is filtering (amongst others) file renames. If a
rename is
> intercepted, I need to look at the destination file name
and see for
> example if it’s on the network. Now, suppose I have a drive
mapping,
> eg., T: is mapped to \server\share). Suppose I rename the file
> T:\SomeFolder\SomeFile.Txt to T:\SomeFolder\OtherFile.Txt. In this
> case I can get the server name and share name from the fileobject
> during IRP_MJ_CREATE. However, in the FileRenameInformation record,
> the destination file name refers to the mapped drive
letter, and not
> to the network location.
>
> What do I need to do to get the network location of a renamed file ?
>
> Best,
> Bartjan.
>
> —
> You are currently subscribed to ntfsd as: xxxxx@alfasp.com
> To unsubscribe send a blank email to %%email.unsub%%
–
Kind regards, Dejan M. www.alfasp.com
E-mail: xxxxx@alfasp.com ICQ#: 56570367
Alfa File Monitor - File monitoring library for Win32
developers. Alfa File Protector - File protection and hiding
library for Win32 developers.
You are currently subscribed to ntfsd as: xxxxx@zeelandnet.nl
To unsubscribe send a blank email to %%email.unsub%%