Getting FreeCallback in Per-Stream Context Structures

NTDEVers:

I’m using Per-Stream Context Structures on Windows Server 2003 in a FS
filter driver.

It all seems to work fine, except that the FreeCallback never gets invoked.
It’s getting set up in FsRtlInitPerStreamContext, but never gets called.
Consequently, the stream contexts never get deleted, which is a Bad Thing.
(The Close and/or Cleanup can’t be used because I/O often happens after
them.)

Anybody know if there’s some trick to it?

Thanks,
Ken Cross
FileKeeper, Inc.

FWIW, filespy never seems to get its FreeCallback routine called, either (if
#define USE_STREAM_CONTEXTS 1”).

Put simply: has *anybody* successfully gotten FreeCallback to work with
per-stream contexts in XP/2003?

Thanks,
Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Cross
Sent: Thursday, March 11, 2004 6:41 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Getting FreeCallback in Per-Stream Context Structures

NTDEVers:

I’m using Per-Stream Context Structures on Windows Server 2003 in a FS
filter driver.

It all seems to work fine, except that the FreeCallback never gets invoked.
It’s getting set up in FsRtlInitPerStreamContext, but never gets called.
Consequently, the stream contexts never get deleted, which is a Bad Thing.
(The Close and/or Cleanup can’t be used because I/O often happens after
them.)

Anybody know if there’s some trick to it?

Thanks,
Ken Cross
FileKeeper, Inc.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com