how can I detect when a removable volume is accesed(mounted)

Hi
I would like to know how can I detect when a removable volume
(floppy,cdrom) is accesed(mounted).I try to attach to \Device\Floppy0
,in floppy case, but I receive page faults.Is that a good idea or there
is another one.
Bye
Adi

The simplest way is to process the WM_DEVICECHANGE message.


??: chiadi[SMTP:xxxxx@gecad.ro]
???: NT Developers Interest List
???: 25 ??? 2000 ?. 18:10
???: NT Developers Interest List
???: [ntdev] how can I detect when a removable volume is accesed(mounted)

<???: ATT00004.html>>
Hi
I would like to know how can I detect when a removable volume
(floppy,cdrom) is accesed(mounted).I try to attach to \Device\Floppy0
,in floppy case, but I receive page faults.Is that a good idea or there
is another one.
Bye
Adi