Sign in with
Sign up | Sign in
Your question

USB - safely remove hardware

Last response: in Storage
Share
March 29, 2010 10:33:08 AM

hi,
Is there any event which is triggered when 'safely remove hardware' is clicked, which I can capture in my VB application? When this happens, I need to take care of somethings in my application. Any idea?

regards.
a b G Storage
March 29, 2010 1:00:57 PM

What? All the safely removing thing does is stop Windows from accessing the drive and then removes it from the master drive list so other programs won't access it while it is being removed.
m
0
l
a c 127 G Storage
March 29, 2010 1:39:44 PM

No, it also syncs the write-back; and flushes any dirty buffers to the device; then synchronises; then disconnects the device.
m
0
l
March 30, 2010 5:07:40 AM

k.. thanks
m
0
l
!