Unplug Mass storage Device

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

This question is not for Xpe but maybe someone could give me a tip or link you are pretty smart guys

Somebody know programatically how to unplug an attached USB Mass Storage Device so It can be safely removed?

GLopez
 
GLopez,

I don't know a documented APis on USBStor driver.
However, there is always standard WinDDK path. The DevCon example in the
Windows DDK will show you how to enable, disable, restart, update, remove
and query devices using the SetupAPI and CfgMgr32 API functions.
Look into MSDN (DDK) for SetupDiRemoveDevice API.

KM
This question is not for Xpe but maybe someone could give me a tip or link you are pretty smart guys.

Somebody know programatically how to unplug an attached USB Mass Storage
Device so It can be safely removed?.
 
Look in DDK for:

CM_Request_Device_Eject

Regards,
Slobodan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Have an opinion on the effectiveness of Microsoft Embedded newsgroups? Tell
Microsoft!
https://www.windowsembeddedeval.com/community/newsgroups
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GLopez said:
This question is not for Xpe but maybe someone could give me a tip or link you are pretty smart guys.

Somebody know programatically how to unplug an attached USB Mass Storage
Device so It can be safely removed?.
 
Back
Top