Click to return to the Networking, Protocols     
MkParseDisplayNameEx Func...     RegisterBindStatusCallbac...     URL Monikers Functions    
Web Workshop  |  Networking, Protocols & Data Formats

ObtainUserAgentString Function


Retrieves the user agent string in use.

Syntax

HRESULT ObtainUserAgentString(
    DWORD dwOption,
    LPCSTR pcszUAOut,
    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 Value

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.

Function Information

Windows NT Use version 4.0. Implemented as a Unicode function.
Windows Use Windows 95 and later. Implemented as a Unicode function.
Header Urlmon.h
Import Library Urlmon.lib
Minimum availability Internet Explorer 4.0

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.