<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to call InternetErrorDlg to deal with certificate issues on SSL connections (C#)</title><link>http://blogs.msdn.com/alejacma/archive/2009/06/23/how-to-call-interneterrordlg-to-deal-with-certificate-issues-on-ssl-connections-c.aspx</link><description>Hi all, The following C# sample shows how to call WinInet APIs to make an SSL request and deal with possible certificate issues with InternetErrorDlg (which will show the same standard dialogs that Internet Explorer shows when something is wrong with</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: How to call InternetErrorDlg to deal with certificate issues on SSL connections (C#)</title><link>http://blogs.msdn.com/alejacma/archive/2009/06/23/how-to-call-interneterrordlg-to-deal-with-certificate-issues-on-ssl-connections-c.aspx#9910508</link><pubDate>Wed, 21 Oct 2009 11:41:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9910508</guid><dc:creator>Saksham</dc:creator><description>&lt;p&gt;Hi...do you have any idea about how to use httpqueryinfo method? can you provide c# implementation of the same if possible. i have tried using it as mentioned below&lt;/p&gt;
&lt;p&gt;[DllImport(&amp;quot;wininet.dll&amp;quot;, SetLastError = true)]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public extern static bool HttpQueryInfo&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IntPtr hInternet,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int dwInfoLevel,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ref string lpvBuffer,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ref int lpdwBufferLength,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int lpdwIndex&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;);&lt;/p&gt;
&lt;p&gt;But as soon as i use it gives the following exception&lt;/p&gt;
&lt;p&gt;{&amp;quot;Attempted to read or write protected memory. This is often an indication that other memory is corrupt.&amp;quot;}&lt;/p&gt;
</description></item></channel></rss>