# 인터넷 연결 유무 확인 API
#include <Wininet.h>
BOOL bChkInternet = InternetCheckConnection(_T("http://www.google.com"),FLAG_ICC_FORCE_CONNECTION,0);
if(bChkInternet == TRUE)
AfxMessageBox(_T("TRUE"));
else
AfxMessageBox(_T("false"));
:: 구글이 가장 안전하지 않을까~ 하는 생각..