BUG: InternetQueryOption with INTERNET_OPTION_SECURITY_CERTIFICATE Returns Incorrect Results (251347)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 5
  • Microsoft Internet Explorer (Programming) 5.01
  • Microsoft Windows Internet Services (WinInet)

This article was previously published under Q251347

SYMPTOMS

InternetQueryOption returns the wrong data when you use INTERNET_OPTION_SECURITY_CERTIFICATE as the second parameter in Internet Explorer 5 and Internet Explorer 5.01.

RESOLUTION

If you use InternetQueryOption with INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT as the parameter, the API will return the correct information:
INTERNET_CERTIFICATE_INFO sInfo;
dwSize = sizeof(sInfo);
if(!InternetQueryOption(hRequest,INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT, 
  &sInfo, &dwSize))
{
err << "InternetQueryOption failed -" << 
                GetLastError() << endl;
}
				

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Modification Type:MajorLast Reviewed:5/12/2003
Keywords:kbBug kbpending KB251347