Remove Drive w/ selection based on associated DOS drive letter

Discussion in 'Windows Vista Drivers' started by MetaJack, Jun 9, 2010.

  1. MetaJack

    MetaJack Guest

    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?
    MetaJack, Jun 9, 2010
    1. Advertisements

  2. MetaJack

    Uwe Sieber Guest

    Here I have show this:

    Uwe Sieber, Jun 9, 2010
    1. Advertisements


    Also call IOCTL_STORAGE_GET_DEVICE_NUMBER for each drive letter and match them.
    Maxim S. Shatskih, Jun 9, 2010
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.