Registry Callback and Thread context

Hi!
I am developing a registry callback routine using CmRegisterCallback.
Is it GUARANTEED that the POST callback for a particular operation( on a particular object) will be called in the SAME thread context as the PRE callback for that operation?

Thanks.

This is what MSDN says on the subject:

[begin quote]

RegisterCallback executes at IRQL = PASSIVE_LEVEL and in the context of the thread that is performing the registry operation.

[end quote]

As you can see, the above statement is unconditional - it does not even suggest that thread context may somehow depend on ‘Argument2’…

Anton Bassov

Thanks Anton,
Is “THREAD” that is being referred to in the documentation, the thread that requested the registry operation?
And does it imply that if thread T1 issued a SetValueKey request on a key then the BOTH Pre and Post callbacks for this operation will come in context of T1?

> Is “THREAD” that is being referred to in the documentation, the thread that

requested the registry operation?
And does it imply that if thread T1 issued a SetValueKey request on a key then
the BOTH Pre and Post callbacks for this operation will come in context of T1?

Well, the way I understand the above MSDN quote, this is exactly what it implies…

Anton Bassov