Click here to Skip to main content
15,940,550 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

I did unplug usb device using the following method.
cr = CM_Request_Device_Eject(objDevInfoData.DevInst, NULL, NULL, 0, 0);

but i did not get any information regarding replug Usb device programatically .
Please give me some hint for solve this problem.
Is it possible to replug Usb device programatically?

Thanking you in advance.

1 solution

Try using devcon.exe[^]
That can eject and rescan the device.
Share this answer
Sabareesh.T 17-Aug-11 10:26am    
i have checked DevCon.
in this project we can remove device and rescan the device. But we cannot
eject the device and rescan the device.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900