반응형 InternetGetConnectedState1 [개발/VC] 인터넷 연결체크 // 인터넷 연결체크 // #include // #pragma comment(lib, "wininet.lib") BOOL IsConnectedInternet() { DWORD dwFlag; BOOL bChkInternet = InternetGetConnectedState(&dwFlags, 0); if (!bChkInternet) { AfxMessageBox("It is not conntected to internet"); return FALSE; } return TRUE; } 2011. 9. 27. 이전 1 다음 반응형