Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 986 Bytes

ObtainUserAgentString.md

File metadata and controls

52 lines (36 loc) · 986 Bytes

Home

Function name : ObtainUserAgentString

Group: URL Monikers - Library: urlmon


Retrieves the user agent string in use.


Code examples:

Obtaining current Internet Explorer browser version and UserAgent

Declaration:

HRESULT ObtainUserAgentString(
	DWORD dwOption,
	LPCSTR pcszUAOut,
	DWORD *cbSize
);  

FoxPro declaration:

DECLARE INTEGER ObtainUserAgentString IN urlmon;
	INTEGER   dwOption,;
	STRING  @ pcszUAOut,;
	INTEGER @ cbSize
  

Parameters:

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.


Return value:

Returns one of the following values: E_INVALIDARG, E_OUTOFMEMORY, NOERROR (0)