프로그래밍/API
API :: internet 연결 확인
청년코더
2010. 11. 1. 19:01
# 인터넷 연결 유무 확인 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"));
:: 구글이 가장 안전하지 않을까~ 하는 생각..