@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: Retrieves the last error description or server response on the thread calling this function. !!!!C# Signature: [DllImport("wininet.dll")] [return: MarshalAs(UnmanagedType.Bool)] static extern bool InternetGetLastResponseInfo( out int errorCode, StringBuilder buffer, ref int bufferLength); !!!!VB Signature: Declare Function InternetGetLastResponseInfo Lib "wininet.dll" Alias "InternetGetLastResponseInfoA" _ (ByRef errorCode As Integer, ByVal buffer As String, ByRef bufferLength As Integer) _ As <MarshalAs(UnmanagedType.Bool)> Boolean !!!!User-Defined Types: None. !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: Private _errorCode As Integer = 0 Private _buffSize As Integer = 0 Private Function getLastResponse() As String 'Call in once to get the size of the buffer we will need InternetGetLastResponseInfo(_errorCode, vbNullString, _buffSize) 'Allocate space for the message Dim message As String = Space(_buffSize + 1) 'Get the message InternetGetLastResponseInfo(_errorCode, message, _buffSize) Return message End Function !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: InternetGetLastResponseInfo@msdn on MSDN Direct Link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/InternetGetLastResponseInfo.asp
Edit wininet.InternetG...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.