Skip to main content
ATL Server Library Reference 
IBrowserCapsSvc::GetCaps 

Call this method to get the browser capabilities for the browser identified by the HTTP_USER_AGENT server variable in the supplied server context.


HRESULT GetCaps(
   IHttpServerContext * pContext,
   IBrowserCaps ** ppOut
);

Parameters

pContext

The server context identifying the browser via the HTTP_USER_AGENT server variable.

ppOut

[out] Address of the pointer variable that, on success, receives the IBrowserCaps interface pointer of the object describing the capabilities of the browser.

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

This method retrieves the string identifying the browser from the server context's HTTP_USER_AGENT server variable, then calls IBrowserCapsSvc::GetCapsUserAgent to get the browser capabilities.