Get the volume GUID name with (of all things) FltGetVolumeGuidName. It will return something of the form:
??\Volume{big-hex-number}
Append the path without the \Device… crap to get:
??\Volume{big-hex-number}\test.txt
Pass the file name to your service the same way you do now.
Change the second character of the name from ? to \ and pass it to CreateFileW.
- Dan.
----- Original Message -----
From: David Hinkle
To: Windows File Systems Devs Interest List
Sent: Tuesday, April 04, 2006 5:24 PM
Subject: Re: Re:[ntfsd] How do I open \Device\HarddiskVolume1\test.txt in userspace?
How would I return the GUID name? And after I did that… Could I open it with CreateFile in usermode?
On 4/4/06, Dan Kyler < xxxxx@privtek.com> wrote:
Since this is a Windows FILESYSTEM mailing list, I’m going to suggest you fix the problem in your minifilter, instead of in your luser mode code.
If you return the volume GUID name instead of the kernel device name, you can use that in your service, and it will work with dynamic volumes, mount points, volumes without drive letters, etc.
I don’t know if the volume GUID name will be acceptable to fopen, but this is a WINDOWS filesystem mailing list.
----- Original Message -----
From: David Hinkle
To: Windows File Systems Devs Interest List
Sent: Tuesday, April 04, 2006 4:05 PM
Subject: Re:[ntfsd] How do I open \Device\HarddiskVolume1\test.txt in userspace?
An unfortunate cut-and-paste mishap there. What I meant to say was:
I just can’t figure this out. My minifilter is shooting my userspace service the filename ‘\Device\HarddiskVolume1\test.txt’ … But I cannot figure out any way to open the file up. Is there a way to open the file with this name? If not is there a way to reliably translate ‘\Device\HarddiskVolume1\test.txt in’ into ‘c:\test.txt’
Thankyou for any help.
David
On 4/4/06, David Hinkle wrote:
I just can’t figure this out. My minifilter is shooting my userspace service the filename ‘\Device\HarddiskVolume1\test.txt in userspace’ … But I cannot figure out any way to open the file up. Is there a way to open the file with this name? If not is there a way to reliably translate ‘\Device\HarddiskVolume1\test.txt in userspace’ into ‘c:\test.txt’
Thankyou for any help.
David
— 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 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 ntfsd as: unknown lmsubst tag argument: ‘’ To unsubscribe send a blank email to xxxxx@lists.osr.com