Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Remove Drive w/ selection based on associated DOS drive letter

Reply
Thread Tools Display Modes

Remove Drive w/ selection based on associated DOS drive letter

 
 
MetaJack
Guest
Posts: n/a

 
      06-09-2010
I am trying to find a way to call CM_Query_And_Remove_SubTree() or
SetupDiRemoveDevice() on the basis of the associated DOS drive letter. There
seem to be multiple name-spaces for both physical and logical drives. I have
found a number of well-hidden bridges for tying some of them together, but
have been unable to find one that lets me start with the drive letter and
chain down to the ID I need to drive one of the remove functions.

Any Suggestions?
 
Reply With Quote
 
 
 
 
Uwe Sieber
Guest
Posts: n/a

 
      06-09-2010
MetaJack wrote:
> I am trying to find a way to call CM_Query_And_Remove_SubTree() or
> SetupDiRemoveDevice() on the basis of the associated DOS drive letter. There
> seem to be multiple name-spaces for both physical and logical drives. I have
> found a number of well-hidden bridges for tying some of them together, but
> have been unable to find one that lets me start with the drive letter and
> chain down to the ID I need to drive one of the remove functions.
>
> Any Suggestions?


Here I have show this:
http://www.codeproject.com/system/Re...veByLetter.asp


Uwe


 
Reply With Quote
 
Maxim S. Shatskih
Guest
Posts: n/a

 
      06-09-2010
Enumerate all GUID_DEVINTERFACE_CDROM/_DISK, call IOCTL_STORAGE_GET_DEVICE_NUMBER for each.

Also call IOCTL_STORAGE_GET_DEVICE_NUMBER for each drive letter and match them.

--
Maxim S. Shatskih
Windows DDK MVP

http://www.storagecraft.com

"MetaJack" <> wrote in message news:99F040BC-61DC-41F5-BF85-...
>I am trying to find a way to call CM_Query_And_Remove_SubTree() or
> SetupDiRemoveDevice() on the basis of the associated DOS drive letter. There
> seem to be multiple name-spaces for both physical and logical drives. I have
> found a number of well-hidden bridges for tying some of them together, but
> have been unable to find one that lets me start with the drive letter and
> chain down to the ID I need to drive one of the remove functions.
>
> Any Suggestions?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cluster Nodes Not Failing Over - Physical Disk Resource in gtlscot Clustering 20 01-19-2010 09:15 AM
Missing drive letter causing big Windows problems badun Windows Vista Hardware 0 08-09-2007 02:14 PM
USB drives and mapped drive letter conflicts TechDesign Windows Vista Hardware 6 09-03-2006 05:42 AM
USB drive letters and mapped drive letter issues TechDesign Windows Vista Hardware 1 07-21-2006 03:13 PM
USB drive letters and mapped drive letter issues TechDesign Windows Vista Hardware 1 07-21-2006 03:12 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59