This documentation is archived and is not being maintained.


Visual Studio .NET 2003

Call this method to get access to the context for the current request.

template <typename Interface>
HRESULT GetContext(
   Interface** ppInterface
) throw(...);
HRESULT GetContext(
   REFIID riid,
   void** ppv 


[in] The interface ID of the requested interface.
ppv, ppInterface
[out] Address of the pointer variable that, on success, receives the interface pointer to the requested interface.

Return Value

Returns S_OK on success, or an error HRESULT on failure.


You can successfully query for the following interfaces using GetContext:

Typically this method is an override for ITagReplacerImpl::GetContext.

See Also

CRequestHandlerT Overview | Class Members