ObtainUserAgentString
Retrieves the user agent string in use.
Syntax
HRESULT ObtainUserAgentString(
DWORD dwOption,
LPSTR pszUAOut,
DWORD * cbSize
);
Parameters
- dwOption
Reserved. Must be set to zero. - pszUAOut
Address of a string value that contains the user agent string currently being used. - cbSize
Address of an unsigned long integer value that contains the length of the string.
Return Values
Returns one of the following values:
- E_INVALIDARG
One of the parameters is invalid. - E_OUTOFMEMORY
The operation ran out of memory. - NOERROR
The function completed successfully.
Requirements
Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: urlmon.h
Library: urlmon.lib
See Also
URL Moniker Services Functions
Send Feedback on this topic to the authors