FltDeleteContext

If a stream context is associated with a stream (ie. FltSetStreamContext has
been called). Will a FltDeleteContext act just like FltDeleteStreamContext
and remove the context from the stream AND mark it for deletion or just mark
it for deletion?

What is the difference aside from the fact that Delete takes one parameter
and DeleteStream takes three?

Can I use FltDeleteContext if I have not previously done a
FltGetStreamContext?

Ken

You use FltDeleteStreamContext if you don’t have the context in hand and
want to delete it (it does the lookup, then deletes it). If you ask for
the deleted context to be returned (the 3rd parameter), you must call
FltReleaseContext when you are finished with that context.

You use FltDeleteContext if you already have the context. This call
does not release the reference you added to the context when you called
FltGetStreamContext to retrieve it.

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 Ken Galipeau
Sent: Thursday, March 11, 2004 12:39 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] FltDeleteContext

If a stream context is associated with a stream (ie. FltSetStreamContext
has been called). Will a FltDeleteContext act just like
FltDeleteStreamContext and remove the context from the stream AND mark
it for deletion or just mark it for deletion?

What is the difference aside from the fact that Delete takes one
parameter and DeleteStream takes three?

Can I use FltDeleteContext if I have not previously done a
FltGetStreamContext?

Ken


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