I would write a program to trigger the usb device to replug in.
However, USB surprise removal dialog box always pops up.
Is it possible to prevent this dialog box from the user mode program?

Best Regards

Jackal Huang

Re: How to prevent USB surprise removal dialog box on Windows ME/2000? by Maxim

Maxim
Tue Nov 18 10:06:40 CST 2003

You cannot. This means that the nature of the device is such so it does not
handles surprise removal in a good way.
You have simulated re-plug - and got what you wanted, the real re-plug
would do the same message box.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com


"Jackal Huang" <huangjj@hotmail.com> wrote in message
news:#$h$HuarDHA.3732@tk2msftngp13.phx.gbl...
> I would write a program to trigger the usb device to replug in.
> However, USB surprise removal dialog box always pops up.
> Is it possible to prevent this dialog box from the user mode program?
>
> Best Regards
>
> Jackal Huang
>
>



Re: How to prevent USB surprise removal dialog box on Windows ME/2000? by Eliyas

Eliyas
Tue Nov 18 10:32:31 CST 2003

No, not possible from usermode.

--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx

"Jackal Huang" <huangjj@hotmail.com> wrote in message
news:%23$h$HuarDHA.3732@tk2msftngp13.phx.gbl...
> I would write a program to trigger the usb device to replug in.
> However, USB surprise removal dialog box always pops up.
> Is it possible to prevent this dialog box from the user mode program?
>
> Best Regards
>
> Jackal Huang
>
>