ObtainUserAgentString (Windows CE 5.0)
This function retrieves the user agent string in use.
HRESULT ObtainUserAgentString(DWORDdwOption,LPCSTRpcszUAOut,DWORD* cbSize);
Parameters
- dwOption
Reserved. Must be set to zero. - pcszUAOut
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
This function returns one of the values shown in the following table.
Value | Description |
---|---|
E_INVALIDARG | One of the parameters is invalid. |
E_OUTOFMEMORY | The operation ran out of memory. |
NOERROR | The function completed successfully. |
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Urlmon.h, Urlmon.idl.
Link Library: Urlmon.lib.
Send Feedback on this topic to the authors