Hi all,
We are developing file sytem filter driver for W2K.
When I access network drive ,e.g mapped to F: drive,we get
FileObject->FileName.Buffer in format like
“;F:0\machinename\sharename\path\filename”
When I try to open file with this path, I can’t open it.
Is it a valid path for network drive? If it is not then how to get
a valid pathname?
Can I get any help on this?
Regards,
Medha.
Refer to either the MSFT samples from the IFS kit, or possibly even
FileMon (http://www.sysinternals.com) to see how to convert the
FileObject filenames to “real” filenames…
Bear in mind that for local devices you need to add '\Device\Mup\ to the
pathname to open the file from kernel-mode, for example:
“\Device\Mup\machinename\sharename\path\filename”
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Medha
Sent: vrijdag 27 september 2002 13:27
To: File Systems Developers
Subject: [ntfsd] Network fileHi all,
We are developing file sytem filter driver for W2K.
When I access network drive ,e.g mapped to F: drive,we get
FileObject->FileName.Buffer in format like
“;F:0\machinename\sharename\path\filename”
When I try to open file with this path, I can’t open it.
Is it a valid path for network drive? If it is not then how to get
a valid pathname?
Can I get any help on this?
Regards,
Medha.
You are currently subscribed to ntfsd as: xxxxx@zeelandnet.nl
To unsubscribe send a blank email to %%email.unsub%%
I got the hint from filemon code.
That works fine with my driver now.
Thanks.
Medha.
On Fri, 27 Sep 2002 Bartjan Wattel wrote :
Refer to either the MSFT samples from the IFS kit, or possibly
even
FileMon (http://www.sysinternals.com) to see how to convert the
FileObject filenames to “real” filenames…Bear in mind that for local devices you need to add '\Device\Mup\
to the
pathname to open the file from kernel-mode, for example:“\Device\Mup\machinename\sharename\path\filename”
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Medha
> Sent: vrijdag 27 september 2002 13:27
> To: File Systems Developers
> Subject: [ntfsd] Network file
>
>
> Hi all,
> We are developing file sytem filter driver for W2K.
> When I access network drive ,e.g mapped to F: drive,we get
> FileObject->FileName.Buffer in format like
> “;F:0\machinename\sharename\path\filename”
> When I try to open file with this path, I can’t open it.
> Is it a valid path for network drive? If it is not then how to
get
> a valid pathname?
> Can I get any help on this?
> Regards,
> Medha.
>
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@zeelandnet.nl
> To unsubscribe send a blank email to %%email.unsub%%
>
You are currently subscribed to ntfsd as:
xxxxx@rediffmail.com
To unsubscribe send a blank email to
%%email.unsub%%
The FileMon does not handle XP style path names correctly. They have
more than a single number instead of just 0 (or one, which is actually a
session ID - I don’t know what other digits on XP mean).
Also, don’t rely on its file name generating routine - it checks the
passed parameters in an incorrect order, and this can cause problems.
Bartjan Wattel wrote:
Refer to either the MSFT samples from the IFS kit, or possibly even
FileMon (http://www.sysinternals.com) to see how to convert the
FileObject filenames to “real” filenames…
–
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.