Instantiates the appropriate interceptor for the specified interface to be intercepted and returns the newly created interceptor.
HRESULT CoGetInterceptor( REFIID iidIntercepted, IUnknown *punkOuter, REFIID iid, void **ppv );
A reference to the identifier of the interface for which an interceptor is to be returned.
If this parameter is NULL, the object is not being created as part of an aggregate. Otherwise, this parameter is a pointer to the aggregate object's IUnknown interface (the controlling IUnknown).
A reference to the identifier of the interface desired on the interceptor.
The address of a pointer variable that receives the interface pointer requested in iid. Upon successful return, **ppv contains the requested interceptor pointer.
This function can return the following values.
||The function returned successfully.|
||An unexpected error occurred.|
|Windows version||Windows 2000 Professional [desktop apps only] Windows 2000 Server [desktop apps only]|