How to simulate safely remove operation on Windows 2000/XP?

Discussion in 'Windows Vista Drivers' started by Jackal Huang, Dec 5, 2003.

  1. Jackal Huang

    Jackal Huang Guest

    The user can safely remove the usb device via system tray icon
    on Windows 2000/XP.
    I would write a program to perform the safely remove operation.
    How does the program to do so?

    Best Regards

    Jackal Huang
     
    Jackal Huang, Dec 5, 2003
    #1
    1. Advertisements

  2. CM_Request_Device_Eject.
     
    Maxim S. Shatskih, Dec 5, 2003
    #2
    1. Advertisements

  3. Jackal Huang

    Jackal Huang Guest

    Thank you very much. It is exactly what I want to do.
    I found that CM_Request_Device_Eject always returns success
    if veto type and veto name is not NULL.
    How do I identify the safe removal is successful?

    I would use CM_Query_Remove_SubTree to query whether we
    can safe remove the device. But XP DDK document suggests us
    use SetupDi API. Which SetupDi API should I use ? DDK should
    tell us the exact API.

    CM_Request_Device_Eject is not supported on Windows ME.
    How do I perform the same operation on Windows ME?

    Best Regards

    Jackal Huang
     
    Jackal Huang, Dec 8, 2003
    #3
    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.