//#define STRICT // Include Files // #include #include #include #include //#include #include #include "rwpost.h" #include "rw_common.h" #ifdef _DEBUG #include #endif static void _stdcall myCallback( IN HINTERNET hInternet, IN DWORD_PTR dwContext, IN DWORD dwInternetStatus, IN LPVOID lpvStatusInformation OPTIONAL, IN DWORD dwStatusInformationLength ); // // returns // #define RWZ_SITE_CONNECTED 1 // #define RWZ_FAIL_TOCONNECTTOSITE 0 // #define RWZ_SITE_REQUIRES_AUTHENTICATION 2 // DWORD ChkSiteAvailability( HWND hwndProxyParent, LPCTSTR szIISServer,DWORD dwTimeOut,LPTSTR szProxyServer ,LPTSTR szUserName, LPTSTR szPassword) { DWORD dwRet ; DWORD dwLen=1024; DWORD dwAccessType ; HANDLE hEvent; HINTERNET hSession; HINTERNET hConnect; HINTERNET hHttpFile; INTERNET_STATUS_CALLBACK hI; char bufQuery[32]="" ; DWORD dwbufQuery; DWORD dwLengthBufQuery; BOOL bQuery; // Date : 2/4/98 // The below var are added for incorporatinf IE Auth Dlg // We are changing the Connectivity Check Via Proxy using // INTERNET_OPEN_PRECONFIG DWORD dwProxyAuthError; // Store error returned by InternetErrorDlg LPTSTR pUserName; LPTSTR pPassword; LPTSTR pProxyServerName; pUserName =_T(""); pPassword =_T(""); pProxyServerName =NULL; if(_tcscmp(szProxyServer,_T(""))){ dwAccessType = INTERNET_OPEN_TYPE_PRECONFIG; }else{ dwAccessType = INTERNET_OPEN_TYPE_DIRECT; } #ifdef _DEBUG RW_DEBUG << "\nServer is :" << ConvertToANSIString(szIISServer) <<"\n" <dwError == ERROR_SUCCESS) { RW_DEBUG << "\nERROR_SUCCESS\n" << flush; } else { RW_DEBUG << "\nERROR \ndwResult: " << (DWORD)x->dwResult <