Re: How can I get the current dirctory in a file system filter driver?

The current directory entity has no meaning in a file system filter, or file
system itself. It is a user-mode thing.
Namely, if you don’t make a fully qualified file name request from user mode
(or via ZwXXX routines, I think), the I/O manager will prepend the current
directory for the current process - and use that as the file name.

Shangwu Qi wrote:

Hi,

Thanks your guys for very helpful responses. I have another question of how
to get the current directory or default directory full path from the lower
file system device driver. It seems that the file system knows where the
current directory is. Because I can access the file by relative path name
i.e. DeleteFile(“abc.txt”). But my filter only gets the relative name in
FileObject->FileName if the file needs be reparsed. Apparently the file
system successfully read the file and found that the file is a reparse point
file, then goes to my filter driver to ask for reparsing.
Any hint is appreciated.

Shangwu


You are currently subscribed to ntfsd as: xxxxx@alfasp.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Kind regards, Dejan M. www.alfasp.com
E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32 developers.
Alfa File Monitor - File monitoring library for Win32 developers.