Posted on 2000-01-15
I have tried to use the function InternetGetConnectedState like this:
BOOL check = InternetGetConnectedState((unsigned long *)INTERNET_CONNECTION_MODEM, 0) ;
But when I ran my program, an unhandled exception error occured.
I have already included the wininet.h and link the wininet.lib at my projoect.
What is the problem? How can I use this function to check the network connection by modem/LAN.......