Bartjan:
For substituted and network drives mount/dismount requests are not issued.
As far as I
understand the mechanism, it’s just matter of creating a symbolic link that
later will
be parsed by I/O Mgr and forwarder to appropriate (and already mounted)
device. For
example, if X: is a subst for C:\Folder, then ??\X: addresses
??\C:\Folder. Similar
thing with mapped network drives.
As far as option #2 goes, what API allows me to monitor those events?
TIA,
Vladimir
-----Original Message-----
From: Bartjan Wattel [mailto:xxxxx@zeelandnet.nl]
Sent: Thursday, March 28, 2002 3:57 AM
To: File Systems Developers
Subject: [ntfsd] RE: How to detect subst/network drive
creation/deletion?
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?
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
You are currently subscribed to ntfsd as: xxxxx@zeelandnet.nl
To unsubscribe send a blank email to %%email.unsub%%
You are currently subscribed to ntfsd as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%