windows ME explorer refresh after format.

Howdy,

This is observed under windows ME.
I am using wnaspi32 APIs to format the removable media
on a usb mass storage device. The read and write block
commands seems to be working as they fetch the correct
data after a write operation and I also verified on
the usb watch external tool.

The problem is that windows ME explorer doesn’t
refresh the drive contents after formatting is done. I
did everything including ShellChangeNotify, eject and
uneject using VWIN32_DIOC_DOS_IOCTL but explorer is
just dumb. The only way I could refresh is to reset
the device or unplug and plug the usb cable.

Does anyone have any idea what I might be doing wrong
?

TIA

-Fareed


Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

Try calling the BroadcastSystemMessage() API with the DBT_DEVICEARRIVAL
parameter from user mode. Works on 9x, Me, NT4, W2k (not XP
though…doh).

If you figure out some way to refresh a removable volume on XP please let
me know.