“Little known COM feature: CoGetIntercept…”
Little known COM feature: CoGetInterceptor. This function provides you with a universal interception mechanism that lets you dynamically inspect all aspects of a call and that feels a lot like .NET Remoting Context interception sinks (which unfortunately went from documented to “internal only” in .NET FW RTM) I don’t have the cycles right now to provide an isolated sample or an in-depth explanation, but it works something like that: IUnknown * pItfToBeIntercepted;ICallInterceptor * pInterceptor;// …...