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