IoRegisterFsRegistrationChange() help needed

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.

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.

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.

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.

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

Why not load at boot? Anyway you cannot unload it.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Kedar”
Newsgroups: ntfsd
To: “Windows File Systems Devs Interest List”
Sent: Tuesday, April 27, 2004 11:54 AM
Subject: [ntfsd] IoRegisterFsRegistrationChange() help needed

> 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@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

Hi All,

My requirement might need the driver to be loaded dynamically, and if I use
IoRegisterFsRegistrationChange() I am not getting the file system mount for
the CD if I insert the CD after I load the driver.

Any information is helpful.

Thanks,
Kedar.

Why not load at boot? Anyway you cannot unload it.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Kedar”
Newsgroups: ntfsd
To: “Windows File Systems Devs Interest List”
Sent: Tuesday, April 27, 2004 11:54 AM
Subject: [ntfsd] IoRegisterFsRegistrationChange() help needed

> 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@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

Which OS is this on?

Pete

Peter Scott
xxxxx@KernelDrivers.com
www.KernelDrivers.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kedar
Sent: Wednesday, April 28, 2004 8:21 AM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] IoRegisterFsRegistrationChange() help needed

Hi All,

My requirement might need the driver to be loaded dynamically, and if I use
IoRegisterFsRegistrationChange() I am not getting the file system mount for
the CD if I insert the CD after I load the driver.

Any information is helpful.

Thanks,
Kedar.

Why not load at boot? Anyway you cannot unload it.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Kedar”
Newsgroups: ntfsd
To: “Windows File Systems Devs Interest List”
Sent: Tuesday, April 27, 2004 11:54 AM
Subject: [ntfsd] IoRegisterFsRegistrationChange() help needed

> 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@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@kerneldrivers.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

There is a well defined and documented way to do things. I think you must
insist on changing requirements.

–htfv

“Kedar” wrote in message news:xxxxx@ntfsd…
> Hi All,
>
> My requirement might need the driver to be loaded dynamically, and if I
> use
> IoRegisterFsRegistrationChange() I am not getting the file system mount
> for
> the CD if I insert the CD after I load the driver.
>
> Any information is helpful.
>
> Thanks,
> Kedar.
>
>
>
>
>
> Why not load at boot? Anyway you cannot unload it.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> ----- Original Message -----
> From: “Kedar”
> Newsgroups: ntfsd
> To: “Windows File Systems Devs Interest List”
> Sent: Tuesday, April 27, 2004 11:54 AM
> Subject: [ntfsd] IoRegisterFsRegistrationChange() help needed
>
>
>> 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@storagecraft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>

Forget such a requirement for FS filter,

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Kedar”
Newsgroups: ntfsd
To: “Windows File Systems Devs Interest List”
Sent: Wednesday, April 28, 2004 6:21 PM
Subject: Re:[ntfsd] IoRegisterFsRegistrationChange() help needed

> Hi All,
>
> My requirement might need the driver to be loaded dynamically, and if I use
> IoRegisterFsRegistrationChange() I am not getting the file system mount for
> the CD if I insert the CD after I load the driver.
>
> Any information is helpful.
>
> Thanks,
> Kedar.
>
>
>
>
>
> Why not load at boot? Anyway you cannot unload it.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> ----- Original Message -----
> From: “Kedar”
> Newsgroups: ntfsd
> To: “Windows File Systems Devs Interest List”
> Sent: Tuesday, April 27, 2004 11:54 AM
> Subject: [ntfsd] IoRegisterFsRegistrationChange() help needed
>
>
> > 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@storagecraft.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

You may reference the object \FileSystem\Cdfs
using ObReferenceObjectByName.

You then get the driver object, and you have then list of all devices that
are created by this driver. You may attach to all of them
(beware that you must test if you are not attached yet !!!).

L.

Easy to say if you’re the developer who never needed it. Consider a CD-Rom
Encryptor. Restarting a system to load a driver is not really a suitable idea,
because most users won’t accept it. I got a feeling that’s what he’s after in this
case.


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.

What is this is UDF CD? Or FAT, or (theoretically possible) NFTS CD? Or may
be some third party file system?

–htfv

“Ladislav Zezula” wrote in message news:xxxxx@ntfsd…
> You may reference the object \FileSystem\Cdfs
> using ObReferenceObjectByName.
>
> You then get the driver object, and you have then list of all devices that
> are created by this driver. You may attach to all of them
> (beware that you must test if you are not attached yet !!!).
>
> L.
>
>