As part of my filter driver testing, I need to make drive letters show
up and change and go away.
I know that at the filter level, drive letters are pretty much
meaningless but from the customer and test point of view, they’re the
only thing. The ‘show up’ and ‘go away’ bits can be accomplished by
loading/formating/unloading a ramdisk but how does one change a drive
letter without the use of the Computer Management GUI thing?
Also - there was a ramdisk driver in the NT 4 DDK but it seems to have
disappeared in all subsequent releases. Any reason I can’t build and run
this driver on all O/S versions?
Thanks
> how does one change a drive letter without the use of the Computer
Management GUI thing?
You can use DefineDosDevice(DDD_RAW_TARGET_PATH, …) and
DefineDosDevice(DDD_REMOVE_DEFINITION, …)
there was a ramdisk driver in the NT 4 DDK but it seems to have
disappeared in all subsequent releases.
… and reappeared, see C:\WINDDK\WDF\KMDF10\src\kmdf\ramdisk
----- Original Message -----
From: “Mickey & Eileen Lane”
To: “Windows File Systems Devs Interest List”
Sent: Tuesday, January 10, 2006 7:43 AM
Subject: [ntfsd] Testing issues
> As part of my filter driver testing, I need to make drive letters show up
> and change and go away.
>
> I know that at the filter level, drive letters are pretty much meaningless
> but from the customer and test point of view, they’re the only thing. The
> ‘show up’ and ‘go away’ bits can be accomplished by
> loading/formating/unloading a ramdisk but how does one change a drive
> letter without the use of the Computer Management GUI thing?
>
> Also - there was a ramdisk driver in the NT 4 DDK but it seems to have
> disappeared in all subsequent releases. Any reason I can’t build and run
> this driver on all O/S versions?
>
> Thanks
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@bellsouth.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com
I figured this was going to be a fairly tedious test to write but your
answer helps a lot! Thanks.
xxxxx@Home wrote:
> how does one change a drive letter without the use of the Computer
> Management GUI thing?
You can use DefineDosDevice(DDD_RAW_TARGET_PATH, …) and
DefineDosDevice(DDD_REMOVE_DEFINITION, …)
> there was a ramdisk driver in the NT 4 DDK but it seems to have
> disappeared in all subsequent releases.
… and reappeared, see C:\WINDDK\WDF\KMDF10\src\kmdf\ramdisk
----- Original Message ----- From: “Mickey & Eileen Lane”
> To: “Windows File Systems Devs Interest List”
> Sent: Tuesday, January 10, 2006 7:43 AM
> Subject: [ntfsd] Testing issues
>
>
>> As part of my filter driver testing, I need to make drive letters
>> show up and change and go away.
>>
>> I know that at the filter level, drive letters are pretty much
>> meaningless but from the customer and test point of view, they’re the
>> only thing. The ‘show up’ and ‘go away’ bits can be accomplished by
>> loading/formating/unloading a ramdisk but how does one change a drive
>> letter without the use of the Computer Management GUI thing?
>>
>> Also - there was a ramdisk driver in the NT 4 DDK but it seems to
>> have disappeared in all subsequent releases. Any reason I can’t build
>> and run this driver on all O/S versions?
>>
>> Thanks
>>
>>
>>
>> —
>> Questions? First check the IFS FAQ at
>> https://www.osronline.com/article.cfm?id=17
>>
>> You are currently subscribed to ntfsd as: xxxxx@bellsouth.net
>> 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: xxxxx@earthlink.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Do you just want ot change the set of dos names or do you in fact want to
mount and unmount?
“Mickey & Eileen Lane” wrote in message
news:xxxxx@ntfsd…
> As part of my filter driver testing, I need to make drive letters show up
> and change and go away.
>
> I know that at the filter level, drive letters are pretty much meaningless
> but from the customer and test point of view, they’re the only thing. The
> ‘show up’ and ‘go away’ bits can be accomplished by
> loading/formating/unloading a ramdisk but how does one change a drive
> letter without the use of the Computer Management GUI thing?
>
> Also - there was a ramdisk driver in the NT 4 DDK but it seems to have
> disappeared in all subsequent releases. Any reason I can’t build and run
> this driver on all O/S versions?
>
> Thanks
>
>
>
Let’s say filtering is running and someone plugs in some removable
device that shows up as D:
There’s a file on the device that triggers some action by the filter.
User wanted it to be E: so uses whatever means to change the drive
letter to E:
The object of my test is to see that everything happens that’s supposed
to happen in this situation. Is the file in question still being filtered?
Part of the problem is I’m not sure what’s supposed to happen here 
Mickey.
Lyndon J Clarke wrote:
Do you just want ot change the set of dos names or do you in fact want to
mount and unmount?
“Mickey & Eileen Lane” wrote in message
>news:xxxxx@ntfsd…
>
>
>>As part of my filter driver testing, I need to make drive letters show up
>>and change and go away.
>>
>>I know that at the filter level, drive letters are pretty much meaningless
>>but from the customer and test point of view, they’re the only thing. The
>>‘show up’ and ‘go away’ bits can be accomplished by
>>loading/formating/unloading a ramdisk but how does one change a drive
>>letter without the use of the Computer Management GUI thing?
>>
>>Also - there was a ramdisk driver in the NT 4 DDK but it seems to have
>>disappeared in all subsequent releases. Any reason I can’t build and run
>>this driver on all O/S versions?
>>
>>Thanks
>>
>>
>>
>>
>>
>
>
>
>—
>Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17
>
>You are currently subscribed to ntfsd as: xxxxx@earthlink.net
>To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
In the worst case, you will see dismount and remount. At least the volume
is surely dismounted if you will remove all drive letters from it in
DiskMgmt.msc.
As about changing the drive letter - I do not know, but there are chances
that there will be no dismount in this case.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Mickey & Eileen Lane”
To: “Windows File Systems Devs Interest List”
Sent: Tuesday, January 10, 2006 9:11 PM
Subject: Re: [ntfsd] Testing issues
> Let’s say filtering is running and someone plugs in some removable
> device that shows up as D:
> There’s a file on the device that triggers some action by the filter.
>
> User wanted it to be E: so uses whatever means to change the drive
> letter to E:
>
> The object of my test is to see that everything happens that’s supposed
> to happen in this situation. Is the file in question still being filtered?
> Part of the problem is I’m not sure what’s supposed to happen here 
>
> Mickey.
>
> Lyndon J Clarke wrote:
>
> >Do you just want ot change the set of dos names or do you in fact want to
> >mount and unmount?
> >
> >“Mickey & Eileen Lane” wrote in message
> >news:xxxxx@ntfsd…
> >
> >
> >>As part of my filter driver testing, I need to make drive letters show up
> >>and change and go away.
> >>
> >>I know that at the filter level, drive letters are pretty much meaningless
> >>but from the customer and test point of view, they’re the only thing. The
> >>‘show up’ and ‘go away’ bits can be accomplished by
> >>loading/formating/unloading a ramdisk but how does one change a drive
> >>letter without the use of the Computer Management GUI thing?
> >>
> >>Also - there was a ramdisk driver in the NT 4 DDK but it seems to have
> >>disappeared in all subsequent releases. Any reason I can’t build and run
> >>this driver on all O/S versions?
> >>
> >>Thanks
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> >—
> >Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
> >
> >You are currently subscribed to ntfsd as: xxxxx@earthlink.net
> >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: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
> I do not know, but there are chances
that there will be no dismount in this case.
That’s what I see.
Looks like dismount comes separately.
But it surely can be done without DiskMgmt.msc - OP does not want to involve gui, IIRC.
From: “Maxim S. Shatskih”
> Date: 2006/01/10 Tue PM 01:50:05 EST
> To: “Windows File Systems Devs Interest List”
> Subject: Re: [ntfsd] Testing issues
>
> In the worst case, you will see dismount and remount. At least the volume
> is surely dismounted if you will remove all drive letters from it in
> DiskMgmt.msc.
>
> As about changing the drive letter - I do not know, but there are chances
> that there will be no dismount in this case.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “Mickey & Eileen Lane”
> To: “Windows File Systems Devs Interest List”
> Sent: Tuesday, January 10, 2006 9:11 PM
> Subject: Re: [ntfsd] Testing issues
>
>
> > Let’s say filtering is running and someone plugs in some removable
> > device that shows up as D:
> > There’s a file on the device that triggers some action by the filter.
> >
> > User wanted it to be E: so uses whatever means to change the drive
> > letter to E:
> >
> > The object of my test is to see that everything happens that’s supposed
> > to happen in this situation. Is the file in question still being filtered?
> > Part of the problem is I’m not sure what’s supposed to happen here 
> >
> > Mickey.
> >
> > Lyndon J Clarke wrote:
> >
> > >Do you just want ot change the set of dos names or do you in fact want to
> > >mount and unmount?
> > >
> > >“Mickey & Eileen Lane” wrote in message
> > >news:xxxxx@ntfsd…
> > >
> > >
> > >>As part of my filter driver testing, I need to make drive letters show up
> > >>and change and go away.
> > >>
> > >>I know that at the filter level, drive letters are pretty much meaningless
> > >>but from the customer and test point of view, they’re the only thing. The
> > >>‘show up’ and ‘go away’ bits can be accomplished by
> > >>loading/formating/unloading a ramdisk but how does one change a drive
> > >>letter without the use of the Computer Management GUI thing?
> > >>
> > >>Also - there was a ramdisk driver in the NT 4 DDK but it seems to have
> > >>disappeared in all subsequent releases. Any reason I can’t build and run
> > >>this driver on all O/S versions?
> > >>
> > >>Thanks
> > >>
> > >>
> > >>
> > >>
> > >>
> > >
> > >
> > >
> > >—
> > >Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
> > >
> > >You are currently subscribed to ntfsd as: xxxxx@earthlink.net
> > >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: xxxxx@storagecraft.com
> > 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: xxxxx@bellsouth.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
re: my filter testing with a ramdisk…
I looked at the KMDF version and the NT 4 version and opted for the
older one as this needs to run on w2k and up (for now, anyway). I
commented out the registry reads for configuration details and the
IoCreateSymbolicLink() and loaded it via SCM.
During the course of debugging, I wound up with multiple associations
between the \Device\Ramdisk and a drive letter. I have a little utility
that shows all known associations and it gives me this for drive letter M:
M:
\Device\Ramdisk
\Device\Ramdisk
\Device\Ramdisk
\Device\Ramdisk
\Device\Ramdisk
\Device\Ramdisk
\Device\Ramdisk
\Device\Ramdisk
\Device\Ramdisk
Basically what I’ve done is start the process 9 times without cleaning
up. I can (and do) use DefineDosDevice(DDD_REMOVE_DEFINITION to undo the
association but it appears that you must know A) the drive letter to
remove drom a particular device or B) the drive letter to remove from
any device.
Is there any way to use DefineDosDevice to remove all associations with
\Device\Ramdisk or do I need to iterate through 23 drive letters (D…Z)
and see if any are attached to the ramdisk?
Test code usually gets into weird states and it would be nice to have a
function to remove any and all interfaces to \Device\Ramdisk.
Thanks,
Mickey.
xxxxx@Home wrote:
> how does one change a drive letter without the use of the Computer
> Management GUI thing?
You can use DefineDosDevice(DDD_RAW_TARGET_PATH, …) and
DefineDosDevice(DDD_REMOVE_DEFINITION, …)
> there was a ramdisk driver in the NT 4 DDK but it seems to have
> disappeared in all subsequent releases.
… and reappeared, see C:\WINDDK\WDF\KMDF10\src\kmdf\ramdisk