Minifilter Installation - How should it appear in registry

We’re working on a minifilter that we’re currently calling an “activity monitor” while we work on some of our initial path finding. In our INF file, we specify the class and class GUID to reflect this:


[Version]
Signature = “$Windows NT$”
Class = “ActivityMonitor”
ClassGuid = {b86dff51-a31e-4bac-b3cf-e8cfe75c9fc2}
Provider = %US%
DriverVer = 06/16/2008,1.0.0.0
CatalogFile = foo.cat

[Foo.Service]
DisplayName = %ServiceName%
Description = %ServiceDescription%
ServiceBinary = %12%%DriverName%.sys
Dependencies = FltMgr
ServiceType = 2
StartType = 3
ErrorControl = 1
LoadOrderGroup = “FSFilter Activity Monitor”
AddReg = Foo.AddRegistry

[Foo.AddRegistry]
HKR,“Instances”,“DefaultInstance”,0x00000000,%DefaultInstance%
HKR,"Instances"%Instance1.Name%,“Altitude”,0x00000000,%Instance1.Altitude%
HKR,"Instances"%Instance1.Name%,“Flags”,0x00010001,%Instance1.Flags%

DefaultInstance = “Foo - Top Instance”
Instance1.Name = “Foo - Top Instance”
Instance1.Altitude = “370000”
Instance1.Flags = 0x0

When we install our driver we find the expected entry under HKLM\SYSTEM\CurrentControlSet\Services:

DependOnService FltMgr
Description Test
DisplayName FOO
ErrorControl 1
Group FsFilter Activity Monitor
ImagePath system32\DRIVERS\foo.sys
Start 3
Tag 2
Type 2

However, the corresponding entry under HKLM\SYSTEM\CurrentControlSet\Enum\Root shows our class and class GUID as being a legacy driver:

Class LegacyDriver
ClassGUID {8ECC055D-047F-11D1-A537-0000F8753ED1}
ConfigFlags 0
DeviceDesc FOO
Legacy 1
Service FOO

Is this expected for file system minifilters, that they install with the legacy drivers under …\Enum\Root?

Thanks,

Tony Bock

Since your driver isn’t discovered via plug and play, it would be
legacy. Count yourself as lucky that you need not deal with the PnP
manager…

Tony
OSR

OK, so we specify one class/GUID pair in our INF and get another one in the registry when our driver actually installs. That was unexpected…

Does this then change our load order group and altitude as well?

If so, how do we go about making sure we get loaded in the desired group and altitude?

Thanks,

Tony Bock

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Tony Mason
Sent: Tuesday, November 11, 2008 6:27 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Minifilter Installation - How should it appear in registry

Since your driver isn’t discovered via plug and play, it would be
legacy. Count yourself as lucky that you need not deal with the PnP
manager…

Tony
OSR


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com