You can do this with a file system filter driver; simply monitor the
mount requests.
Jamey
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jonathan Borden
Sent: Tuesday, September 17, 2002 1:53 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Floppy disk insertion and ejection problem
Someone please correct me if I’m wrong on what I’m about to say…
I don’t believe there is such a notification for the floppy drive. The
reason, as far as I am able to remember, stems from the fact that the
‘changed disk’ line on the floppy drive was not always implemented
correctly. So on a pc it’s often ignored, the only real 1way to
determine if a disk is in the drive or not was to to a read, seek or
whatever, on the actual floppy.
In addition, there is a problem in determining if a floppy disk inserted
now is different from one previously inserted. This is due to the
inconsistent manner in which floppy serial id #'s are done (many can
have 0’s).
I know this doesn’t help your situation. I’m trying to think of
possible solutions to the problem.
One solution might be (and this is a bit exccesive) to filter the
hardware access to the floppy drive. In this idea, any access to the
floppy device would be caught by your filter driver and then you can
send notification to your user-land app (using the inverted call model).
You wouldn’t be notified of an insertion or ejection. But you would be
able to be notified on initial access (you could ignore subsequent
accesses). Would this help?
I’m not a real big fan of over-engineering a problem, and this might be
a case where this *is* overengineering. I just don’t see another way
yet given the relatively poor consistency with which some signals on
floppy drives have been handled in the past.
If anyone else has a suggestion, I’m interested as well.
- jb
============================================
Jonathan Borden
L5 Software Group, LLC
“remember…all computers wait at the same speed.”
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Felix K
Sent: Tuesday, September 17, 2002 2:27 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Floppy disk insertion and ejection problem
JB> What exactly is your goal with this? That might help in getting a
JB> good answer…
I’m writing a part of security complex which must control the facts of
useing any removable media (CDROM, Floppy discs, …).
When somebody inserts a CD disk into device I receive WM_DEVICECHANGE
message from the system, then retrieve necessary information about this
CD (Label, File system type, …) and write it into log file. When
somebody ejects CD disk, I do the same operation.
But in situation with floppy diskette the system unfortunately don’t
send me any notifications and I can’t fix the fact of it insertion or
ejection. So, is it possible somehow to fix the facts of floppy diskette
insertion and ejection?
Please, help.
Thank You in advance, for any advice
Felix K
You are currently subscribed to ntdev as: xxxxx@L5sg.com
To unsubscribe send a blank email to %%email.unsub%%
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%