M
Mark
In the following sample, INTERNET_CONNECTION_LAN returns
a value of 81:
public class Test
{
[DllImport("Wininet.dll")]
private static extern bool
InternetGetConnectedState( out int Description, int
ReservedValue ) ;
public static bool
IsConnectedToInternet( )
{
//int Desc ;
int
INTERNET_CONNECTION_LAN;
return
InternetGetConnectedState( out INTERNET_CONNECTION_LAN,
0 ) ;
}
}
What am I doing wrong to not return a BOOL value?
Thanks
Mark
a value of 81:
public class Test
{
[DllImport("Wininet.dll")]
private static extern bool
InternetGetConnectedState( out int Description, int
ReservedValue ) ;
public static bool
IsConnectedToInternet( )
{
//int Desc ;
int
INTERNET_CONNECTION_LAN;
return
InternetGetConnectedState( out INTERNET_CONNECTION_LAN,
0 ) ;
}
}
What am I doing wrong to not return a BOOL value?
Thanks
Mark