From: leo on
in my application, when a usb storage device plugged on my system.and
then i stopped it and now i don't want to uplug and insert it
again.how can i notify the system that the usb device is inserted.

thanks in advance
From: Maxim S. Shatskih on
> then i stopped it and now i don't want to uplug and insert it
> again.how can i notify the system that the usb device is inserted.

Try disabling the USB controller or hub and enabling it back.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: leo on
On Feb 1, 1:19 pm, "Maxim S. Shatskih"
<ma...(a)storagecraft.com.no.spam> wrote:
> > then i stopped it and now i don't want to uplug and insert it
> > again.how can i notify the system that the usb device is inserted.
>
> Try disabling the USB controller or hub and enabling it back.
>
> --
> Maxim S. Shatskih
> Windows DDK MVP
> ma...(a)storagecraft.comhttp://www.storagecraft.com

thank you very much
From: Doron Holan [MSFT] on
the system should always detect that you plugged in a device. are you
saying you physically remove the device and insert it again and the OS does
not find it?

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"leo" <sunchuanbin(a)gmail.com> wrote in message
news:27c5835a-551f-4a84-8515-9005a1626024(a)l24g2000prh.googlegroups.com...
> On Feb 1, 1:19 pm, "Maxim S. Shatskih"
> <ma...(a)storagecraft.com.no.spam> wrote:
>> > then i stopped it and now i don't want to uplug and insert it
>> > again.how can i notify the system that the usb device is inserted.
>>
>> Try disabling the USB controller or hub and enabling it back.
>>
>> --
>> Maxim S. Shatskih
>> Windows DDK MVP
>> ma...(a)storagecraft.comhttp://www.storagecraft.com
>
> thank you very much

From: leo on
On Feb 2, 2:50 am, "Doron Holan [MSFT]"
<doron.ho...(a)online.microsoft.com> wrote:
> the system should always detect that you plugged in a device.  are you
> saying you physically remove the device and insert it again and the OS does
> not find it?
>
> --
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "leo" <sunchuan...(a)gmail.com> wrote in message
>
> news:27c5835a-551f-4a84-8515-9005a1626024(a)l24g2000prh.googlegroups.com...
>
>
>
> > On Feb 1, 1:19 pm, "Maxim S. Shatskih"
> > <ma...(a)storagecraft.com.no.spam> wrote:
> >> > then i stopped it and now i don't want to uplug and insert it
> >> > again.how can i notify the system that the usb device is inserted.
>
> >> Try disabling the USB controller or hub and enabling it back.
>
> >> --
> >> Maxim S. Shatskih
> >> Windows DDK MVP
> >> ma...(a)storagecraft.comhttp://www.storagecraft.com
>
> > thank you very much- Hide quoted text -
>
> - Show quoted text -




the os can always find it.i don't mean that.
because i am writing a program that can eject the usb storage device
from os.for testing it,
i must physically remove the device and insert it over and over again,
this operation is so trouble
so i decide to write a program that can simulate this physcial
operation.
trying shatskih's method , it can solve that problem .but there is a
new problem that the usb mouse device is disabled.
how can i distinguish the usb storage device from other usb device
when disableing the USB controller