Kedar,
As Dejan said, for XP and later, when you call
IoRegisterFsRegistrationChange(), your filter will get notified of
existing file systems and, of course, if new file systems register or
unregister later, you will receive notifications of those actions as
well.
If this is a Windows 2000 machine, depending on how late you load (like
if you wait until a user can run an application), it is very likely that
all the file systems are already loaded by the time your driver loads.
If there is a specific notification which you are expecting, for example
Cdfs, you can break into the debugger during your filter driver’s
DriverEntry() routine and verify whether or not Cdfs has been loaded by
issuing the “!object \FileSystem\Cdfs” command. If this name is
present, then you know that Cdfs has already loaded and registered as a
file system.
Molly Brown
Microsoft Corporation
This posting is provided “AS IS” with no warranties and confers no
rights.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dejan Maksimovic
Sent: Tuesday, April 27, 2004 5:38 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] IoRegisterFsRegistrationChange() help needed
That IS the idea of the function - it will be called for new FSs.
Kedar wrote:
Hi Dejan,
But it the function is not getting called for the new file systems
that come in, if I am loading the driver dynamically.
Regards,
Kedar.
On XP and later this would work for most purposes, since your
callback would be called for all already registered file system as
well as future ones to register.
On Windows 2000 and NT you need to attach to already registered
file systems and any volumes they’re attached to.
Kedar wrote:
> Hi All,
>
> Can we use the function IoRegisterFsRegistrationChange() in a file
> system filter driver which gets loaded dynamically. That is the
> driver gets
loaded
> through an application and then the driver registers for file system
> changes.
>
> Thanks,
> Kedar.
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@alfasp.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
–
Kind regards, Dejan M. MVP for DDK
http://www.alfasp.com E-mail: xxxxx@alfasp.com Alfa Transparent File
Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa File Monitor - File monitoring library for Win32 developers.
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@alfasp.com To
unsubscribe send a blank email to xxxxx@lists.osr.com
–
Kind regards, Dejan M. MVP for DDK
http://www.alfasp.com E-mail: xxxxx@alfasp.com Alfa Transparent File
Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa File Monitor - File monitoring library for Win32 developers.
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com