Group: URL Monikers - Library: urlmon
Obtaining current Internet Explorer browser version and UserAgent
HRESULT ObtainUserAgentString(
DWORD dwOption,
LPCSTR pcszUAOut,
DWORD *cbSize
);
DECLARE INTEGER ObtainUserAgentString IN urlmon;
INTEGER dwOption,;
STRING @ pcszUAOut,;
INTEGER @ cbSize
dwOption Reserved. Must be set to 0.
pcszUAOut Pointer to a string value that contains the user agent string currently being used.
cbSize Pointer to an unsigned long integer value that contains the length of the string.
Returns one of the following values: E_INVALIDARG, E_OUTOFMEMORY, NOERROR (0)