Unplug Mass storage Device

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
 
K

KM

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?.
 
S

Slobodan Brcin \(eMVP\)

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?.
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Top