Hi,
In my filter driver, I do the following:
- call ObQueryNameString on lpFileObject->DeviceObject to get
the name of the volume where the file resides. - for all drive letters:
- Call ZwOpenSymbolicLinkObject
- Call ZwQuerySymbolicLinkObject
- Compare the name with the name I got for
lpFileObject->DeviceObject
(This happens in all dispatch routines, until I get the letter,
or find that it’s a network volume)
On Basic disks this works, and I successfully compare the names.
For Dynamic disks, however, I get
“Device\HarddiskDmVolumes\AlfaDgD\Volume%d” via Zw?SymLink path, and I
always get '\Device\HarddiskDmVolumes\Ph" from the
lpFileObject->DeviceObject.
Anyone know what I’m doing wrong?
Is there another way to get drive letters for a file object’s
device object since the filter attaches via
IoRegisterFsRegistrationChange ?
–
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.
Alfa Registry Monitor - Registry monitoring library for Win32
developers.
Alfa Registry Protector - Registry protection library for Win32
developers.
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com