Call to UrlMkGetSessionOption for URLMON_OPTION_USERAGENT always returns E_OUTOFMEMORY

115 Views Asked by At

call to UrlMkGetSessionOption

However, it correctly fills up return string buffer(char*) for UserAgent String. URLMon.dll version : 11.0.20161.1000 - 64 bit. Platform Windows 10 64 bit.

1

There are 1 best solutions below

0
On

I am using ObtainUserAgentString, which return a char* buffer, and it seems to work for me as of now.