
How to get notification when ZIP media arrives and leaves
Quote:
>I need to get windows to inform me when a ZIP disk is inserted or removed.
I found Q163503 (WM_DEVCICEHANGE) which explains how to get notification of
a CDROM disc, and the code works great... Is it even possible to get
notification when a floppy disk or a ZIP disk is inserted or removed?
I don't think any intrinsic facility exists for floppies. As to ZIP disks,
I'm not sure. What platform are you targeting?
If 9x go to Start->Settings->ControlPanel->System->DeviceManager->Highlight
the Zip Drive->Properties->Settings. Then check to see whether auto-insert
notification is asserted. If so, the driver should check whether there is a
disk in the drive periodically. On a transition it broadcasts the
WM_DEVICECHANGE message.
Also check the knowledge base article Q160800. If I read it correctly, it
implies that auto-insert notification was intended as a feature for Zip
disks on 9x but has a somewhat buggy implementation.
Regards,
Will