www.pudn.com > htmlpars.zip > inet.h, change:1998-12-27,size:401b


/* 
    Simple wrapper class for checking validity of a URL 
*/ 
 
 
#ifndef __INET_H__ 
#define __INET_H__ 
 
#include <wininet.h> 
 
class WinInet 
{ 
    public: 
        WinInet(); 
        ~WinInet(); 
 
        BOOL IsConnected() const { return (InternetAttemptConnect(0)==ERROR_SUCCESS); } 
        BOOL CheckLink(LPCSTR pcszURL); 
 
    private: 
        HINTERNET m_hInternet; 
}; 
 
 
#endif