R
Rudolf
Does someone have a working sample of using the
InternetGetLastResponseInfo API call from C#?
It seems the parameters or declarations I'm using does not
work or cause a System.ExecutionEngineException exception
that even though there is a try catch for it bombs the
code out.
The last attempt declared it like:
[DllImport("wininet.dll")]
private static extern bool InternetGetLastResponseInfo
(out int lpdwError, out string lpszBuffer, ref int
lpdwBufferLength );
And I try to use it like :
bool bRet;
int iError = 0;
string sError = new string('\0', 1024);
int iBuffer = 1024;
bRet = InternetGetLastResponseInfo( out iError, out
sError, ref iBuffer);
And get:
An unhandled exception of
type 'System.ExecutionEngineException' occurred...
Thanks
Rudolf
InternetGetLastResponseInfo API call from C#?
It seems the parameters or declarations I'm using does not
work or cause a System.ExecutionEngineException exception
that even though there is a try catch for it bombs the
code out.
The last attempt declared it like:
[DllImport("wininet.dll")]
private static extern bool InternetGetLastResponseInfo
(out int lpdwError, out string lpszBuffer, ref int
lpdwBufferLength );
And I try to use it like :
bool bRet;
int iError = 0;
string sError = new string('\0', 1024);
int iBuffer = 1024;
bRet = InternetGetLastResponseInfo( out iError, out
sError, ref iBuffer);
And get:
An unhandled exception of
type 'System.ExecutionEngineException' occurred...
Thanks
Rudolf