Hi everyone!
Is there any way how I can automatically detect in the driver
that a substituted drive or a network drive has been
created or deleted?
TIA,
Vladimir
Hi everyone!
Is there any way how I can automatically detect in the driver
that a substituted drive or a network drive has been
created or deleted?
TIA,
Vladimir
Vladimir,
As I see it there are two options.
Attach to the filesystem devices, like \Fat, \Cdfs, \Ntfs and
\Device\LanManRedirector. “Listen” to IRP_MJ_FILESYSTEM_CONTROL, with
minor code IRP_MN_MOUNT_VOLUME.
Let your service recognize arrival and removal of devices, and send
an IOCTL to your driver to attach to or detach from the drive.
If found that #2 is ok for recognizing CD-media insertion/removal and
network drive insertion/removal. Option #2 however does not allow you to
“see” changes when a user switches floppy disks.
–
Bartjan.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Chtchetkine,
Vladimir
Sent: donderdag 28 maart 2002 0:38
To: File Systems Developers
Subject: [ntfsd] How to detect subst/network drive creation/deletion?
You are currently subscribed to ntfsd as: xxxxx@zeelandnet.nl
To unsubscribe send a blank email to %%email.unsub%%