minifilter context question

Hello,

in MetadataManager sample, FmmInstanceSetup allocates an instance context (it increments ref count by one), sets up the instance context (ref = 2) and releases it (ref=1).

in FmmInstanceTeardownComplete it gets the instance context (ref=2), and releases it (ref=1) - shouldn’t you call FltReleaseContext to decrement the reference count to reach zero and it would free itself automatically ?

thanks,
Petr Kurtin

Petr,

When the filter manager is freeing an instance (after the
FmmInstanceTeardownComplete callback is called), the filter manager
initiates the deletion of the instance context. This releases the
reference added when the context was set on the instance in
FmmInstanceSetup. If this is the last reference on the instance context
(which is typically the case), the instance context will be freed at
this time.

Regards,
Molly Brown
Microsoft Corporation

This posting is provided “AS IS” with no warranties and confers no
rights.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Petr Kurtin
Sent: Thursday, November 11, 2004 5:52 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] minifilter context question

Hello,

in MetadataManager sample, FmmInstanceSetup allocates an instance
context (it increments ref count by one), sets up the instance context
(ref = 2) and releases it (ref=1).

in FmmInstanceTeardownComplete it gets the instance context (ref=2),
and releases it (ref=1) - shouldn’t you call FltReleaseContext to
decrement the reference count to reach zero and it would free itself
automatically ?

thanks,
Petr Kurtin

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

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