I have registered for a callback as shown below, expecting NvCtxInstanceSetup() to be called each time a device is mounted. That is once for the C drive, once for the D drive, etc. And maybe each time the CDROM sees a new CD.
When the minifilter is loaded, via user mode FilterLoad() I see it call for my C drive, but that is it! WHY does it not call about D,etc.
The whole discussion about Context/Instance is confusing, but in the Filter Manager Concepts article in MSDN it says that Attachment of a driver at an altitude is an INSTANCE. I think that is what I am trying for.
If I have confused things, how do I untwist this?
Thanks
Larry
CONST FLT_REGISTRATION FilterRegistration = {
sizeof(FLT_REGISTRATION), // Size
FLT_REGISTRATION_VERSION, // Version
0, // Flags
NvContextRegistration, // Context
Callbacks, // Operation callbacks
NvFsFilterUnload, // FilterUnload
NvCtxInstanceSetup, // InstanceSetup
NvCtxInstanceQueryTeardown , // InstanceQueryTeardown
NvCtxInstanceTeardownStart, // InstanceTeardownStart
NvCtxInstanceTeardownComplete, // InstanceTeardownComplete
NULL, // GenerateFileName
NULL, // GenerateDestinationFileName
NULL // NormalizeNameComponent
#if NVFSMON_LONGHORN
,
SpyKtmNotificationCallback // KTM notification callback
#endif // NVFSMON_LONGHORN
};