none
rundll32.exe shell32.dll,control_rundll hotplug.dll fails with windows 10 but 'Safely Remove Hardware and Eject Media' icon is working

    Question

  • Hi,

    On our machines PCs (Windows Embedded Standard 2009 / Windows 7) we used since years the following command out of our application to provide the user to the unplug message

          control.exe hotplug.dll

    We are currently preparing the migration to Windows 10 IoT and both following commands are not working as well on Windows 10 Enterprise 1709 64-bit as on Windows 10 IoT 1607 64-bit.

          control.exe hotplug.dll

          rundll32.exe shell32.dll,control_rundll hotplug.dll

    Running these commands shows the dialog to select the USB device to be safely removed but brings always following failure after pressing OK :

          The 'Generic Flash Disk USB Device' device is not removable and cannot be ejected or unplugged.

    Using the icon in the taskbar to remove the same drive is however working properly.

    This behaviour can be observed on several PCs with all USB drives at my disposal.

    We would be very glad if someone would have a hint for us.

    Best regards,

    Jacques Bourgeois

    Besi Switzerland AG

    Monday, February 26, 2018 2:34 PM

Answers

All replies

  • Hi,

    Based on my test, the command works on Windows 1709. The command you provided in the article was wrong, and when I copied and pasted there was an error.

    Please use the command below

    RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll

    Also my system version is Windows 10 Enterprise 1709 16299.248. You could try to update to this version to check.

    Hope it will be helpful to you


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Tuesday, February 27, 2018 7:58 AM
    Moderator
  • Hi,

    Thank you for your reply.
    I apologize that I enter in my description the wrong writing for the command but I did all my test with the proper writing, i.e.
          RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll

    Starting this command loads the proper window to select the drive to be unplugged.
    However, after selecting a drive and pressing OK I get following dialog:

    This is however working when I use the icon in the taskbar to do the same.

    My version is older

    Further more, I have to run this on Windows 10 IoT where currently only 1607 is available.



    Friday, March 2, 2018 6:58 AM
  • Same test results on my Windows 10 with build number 16299.248. Let's post the feedback on this issue.


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, March 7, 2018 7:19 AM
    Moderator
  • Additionally, I have confirmed with senior product group and get the answer is:

    This is not an issue, since this interface function has been retired in Windows 10


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, March 12, 2018 8:28 AM
    Moderator