Prev: Writing File System Driver & Creating Virtual Disk Drive in Windows XP [Question by a Novice]
Next: Taking over a session..
From: Arkady Frenkel on 10 Jan 2007 07:45 Don't remove but disable Arkady "Echo" <Echo(a)discussions.microsoft.com> wrote in message news:142F7F15-F4B1-4ACA-92A7-C8BEEDAF460C(a)microsoft.com... > Hi, Arkady Frenkel, > > I tried devcon, but the result is not as I expected. > > Remove utility of devcon will uninstall the device, instead of ejecting > device only. > And the source code uses > SetupDiCallClassInstaller(DIF_REMOVE,Devs,DevInfo) > to realize this utility, which causes the uninstallation. > > Regards, > Echo > > "Arkady Frenkel" wrote: > >> Look at devcon ( enable/disable ) which do it using SetupDi... set of >> functions. >> You have it in ddk examples or separately on >> http://support.microsoft.com/kb/311272 >> >> Arkady >> >> "Echo" <Echo(a)discussions.microsoft.com> wrote in message >> news:B9E80084-F577-4894-AF03-64CD32494A0D(a)microsoft.com... >> > Removable devices, such as usb devices, flashmedia card, can only be >> > safely >> > removed by clicking the icon in system tray in WinXP. But how to make >> > it >> > programmatically? >> > >> > I tried IOCTL_STORAGE_EJECT_MEDIA, FSCTL_DISMOUNT_VOLUME, but only >> > have >> > effect in several special cases. >> > >> > Any advice be appreciated! >> > >> > >> >> >>
From: Echo on 10 Jan 2007 20:55 Disable is just disable like what Device Manager does, not ejecting device from system. Thanks anyway. :-) Regards, Echo "Arkady Frenkel" wrote: > Don't remove but disable > Arkady > > "Echo" <Echo(a)discussions.microsoft.com> wrote in message > news:142F7F15-F4B1-4ACA-92A7-C8BEEDAF460C(a)microsoft.com... > > Hi, Arkady Frenkel, > > > > I tried devcon, but the result is not as I expected. > > > > Remove utility of devcon will uninstall the device, instead of ejecting > > device only. > > And the source code uses > > SetupDiCallClassInstaller(DIF_REMOVE,Devs,DevInfo) > > to realize this utility, which causes the uninstallation. > > > > Regards, > > Echo > > > > "Arkady Frenkel" wrote: > > > >> Look at devcon ( enable/disable ) which do it using SetupDi... set of > >> functions. > >> You have it in ddk examples or separately on > >> http://support.microsoft.com/kb/311272 > >> > >> Arkady > >> > >> "Echo" <Echo(a)discussions.microsoft.com> wrote in message > >> news:B9E80084-F577-4894-AF03-64CD32494A0D(a)microsoft.com... > >> > Removable devices, such as usb devices, flashmedia card, can only be > >> > safely > >> > removed by clicking the icon in system tray in WinXP. But how to make > >> > it > >> > programmatically? > >> > > >> > I tried IOCTL_STORAGE_EJECT_MEDIA, FSCTL_DISMOUNT_VOLUME, but only > >> > have > >> > effect in several special cases. > >> > > >> > Any advice be appreciated! > >> > > >> > > >> > >> > >> > > >
From: Arkady Frenkel on 11 Jan 2007 02:30 But how you can eject USB device , that only can be disable ? Arkady "Echo" <Echo(a)discussions.microsoft.com> wrote in message news:3BE15709-8142-4A29-A815-66C3F4BE6605(a)microsoft.com... > Disable is just disable like what Device Manager does, not ejecting device > from system. > > Thanks anyway. :-) > > Regards, > Echo > > > > "Arkady Frenkel" wrote: > >> Don't remove but disable >> Arkady >> >> "Echo" <Echo(a)discussions.microsoft.com> wrote in message >> news:142F7F15-F4B1-4ACA-92A7-C8BEEDAF460C(a)microsoft.com... >> > Hi, Arkady Frenkel, >> > >> > I tried devcon, but the result is not as I expected. >> > >> > Remove utility of devcon will uninstall the device, instead of ejecting >> > device only. >> > And the source code uses >> > SetupDiCallClassInstaller(DIF_REMOVE,Devs,DevInfo) >> > to realize this utility, which causes the uninstallation. >> > >> > Regards, >> > Echo >> > >> > "Arkady Frenkel" wrote: >> > >> >> Look at devcon ( enable/disable ) which do it using SetupDi... set of >> >> functions. >> >> You have it in ddk examples or separately on >> >> http://support.microsoft.com/kb/311272 >> >> >> >> Arkady >> >> >> >> "Echo" <Echo(a)discussions.microsoft.com> wrote in message >> >> news:B9E80084-F577-4894-AF03-64CD32494A0D(a)microsoft.com... >> >> > Removable devices, such as usb devices, flashmedia card, can only be >> >> > safely >> >> > removed by clicking the icon in system tray in WinXP. But how to >> >> > make >> >> > it >> >> > programmatically? >> >> > >> >> > I tried IOCTL_STORAGE_EJECT_MEDIA, FSCTL_DISMOUNT_VOLUME, but only >> >> > have >> >> > effect in several special cases. >> >> > >> >> > Any advice be appreciated! >> >> > >> >> > >> >> >> >> >> >> >> >> >>
From: Echo on 11 Jan 2007 03:41 Sorry, I can't get yout idea. What I mean in last post is, Both Remove and Disable utility of devcon can't eject removable devices from system. Removable devices (not only use devices) surely can be disable, eject and uninstall. Other replies to this post have given solutions to eject these devices. Thanks & Regards, Echo "Arkady Frenkel" wrote: > But how you can eject USB device , that only can be disable ? > Arkady > > "Echo" <Echo(a)discussions.microsoft.com> wrote in message > news:3BE15709-8142-4A29-A815-66C3F4BE6605(a)microsoft.com... > > Disable is just disable like what Device Manager does, not ejecting device > > from system. > > > > Thanks anyway. :-) > > > > Regards, > > Echo > > > > > > > > "Arkady Frenkel" wrote: > > > >> Don't remove but disable > >> Arkady > >> > >> "Echo" <Echo(a)discussions.microsoft.com> wrote in message > >> news:142F7F15-F4B1-4ACA-92A7-C8BEEDAF460C(a)microsoft.com... > >> > Hi, Arkady Frenkel, > >> > > >> > I tried devcon, but the result is not as I expected. > >> > > >> > Remove utility of devcon will uninstall the device, instead of ejecting > >> > device only. > >> > And the source code uses > >> > SetupDiCallClassInstaller(DIF_REMOVE,Devs,DevInfo) > >> > to realize this utility, which causes the uninstallation. > >> > > >> > Regards, > >> > Echo > >> > > >> > "Arkady Frenkel" wrote: > >> > > >> >> Look at devcon ( enable/disable ) which do it using SetupDi... set of > >> >> functions. > >> >> You have it in ddk examples or separately on > >> >> http://support.microsoft.com/kb/311272 > >> >> > >> >> Arkady > >> >> > >> >> "Echo" <Echo(a)discussions.microsoft.com> wrote in message > >> >> news:B9E80084-F577-4894-AF03-64CD32494A0D(a)microsoft.com... > >> >> > Removable devices, such as usb devices, flashmedia card, can only be > >> >> > safely > >> >> > removed by clicking the icon in system tray in WinXP. But how to > >> >> > make > >> >> > it > >> >> > programmatically? > >> >> > > >> >> > I tried IOCTL_STORAGE_EJECT_MEDIA, FSCTL_DISMOUNT_VOLUME, but only > >> >> > have > >> >> > effect in several special cases. > >> >> > > >> >> > Any advice be appreciated! > >> >> > > >> >> > > >> >> > >> >> > >> >> > >> > >> > >> > > >
From: Arkady Frenkel on 11 Jan 2007 04:01
What I meant to ask is what kind of USB device can be ejected, I just don't know such. Give me example? TIA Arkady "Echo" <Echo(a)discussions.microsoft.com> wrote in message news:4BA702DB-4EB7-48BF-AE12-B8633B0699C7(a)microsoft.com... > Sorry, I can't get yout idea. > > What I mean in last post is, Both Remove and Disable utility of devcon > can't > eject removable devices from system. > > Removable devices (not only use devices) surely can be disable, eject and > uninstall. > Other replies to this post have given solutions to eject these devices. > > Thanks & Regards, > Echo > > "Arkady Frenkel" wrote: > >> But how you can eject USB device , that only can be disable ? >> Arkady >> >> "Echo" <Echo(a)discussions.microsoft.com> wrote in message >> news:3BE15709-8142-4A29-A815-66C3F4BE6605(a)microsoft.com... >> > Disable is just disable like what Device Manager does, not ejecting >> > device >> > from system. >> > >> > Thanks anyway. :-) >> > >> > Regards, >> > Echo >> > >> > >> > >> > "Arkady Frenkel" wrote: >> > >> >> Don't remove but disable >> >> Arkady >> >> >> >> "Echo" <Echo(a)discussions.microsoft.com> wrote in message >> >> news:142F7F15-F4B1-4ACA-92A7-C8BEEDAF460C(a)microsoft.com... >> >> > Hi, Arkady Frenkel, >> >> > >> >> > I tried devcon, but the result is not as I expected. >> >> > >> >> > Remove utility of devcon will uninstall the device, instead of >> >> > ejecting >> >> > device only. >> >> > And the source code uses >> >> > SetupDiCallClassInstaller(DIF_REMOVE,Devs,DevInfo) >> >> > to realize this utility, which causes the uninstallation. >> >> > >> >> > Regards, >> >> > Echo >> >> > >> >> > "Arkady Frenkel" wrote: >> >> > >> >> >> Look at devcon ( enable/disable ) which do it using SetupDi... set >> >> >> of >> >> >> functions. >> >> >> You have it in ddk examples or separately on >> >> >> http://support.microsoft.com/kb/311272 >> >> >> >> >> >> Arkady >> >> >> >> >> >> "Echo" <Echo(a)discussions.microsoft.com> wrote in message >> >> >> news:B9E80084-F577-4894-AF03-64CD32494A0D(a)microsoft.com... >> >> >> > Removable devices, such as usb devices, flashmedia card, can only >> >> >> > be >> >> >> > safely >> >> >> > removed by clicking the icon in system tray in WinXP. But how to >> >> >> > make >> >> >> > it >> >> >> > programmatically? >> >> >> > >> >> >> > I tried IOCTL_STORAGE_EJECT_MEDIA, FSCTL_DISMOUNT_VOLUME, but >> >> >> > only >> >> >> > have >> >> >> > effect in several special cases. >> >> >> > >> >> >> > Any advice be appreciated! >> >> >> > >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> |