40 lines
855 B
C++
40 lines
855 B
C++
#ifndef _UIIINTERNETSESSION_H__
|
|
#define _UIIINTERNETSESSION_H__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include <afxinet.h>
|
|
|
|
class CInternetSessionEx : public CInternetSession
|
|
{
|
|
public:
|
|
CInternetSessionEx(LPCTSTR pstrAgent = NULL,
|
|
DWORD dwContext = 1,
|
|
DWORD dwAccessType = INTERNET_OPEN_TYPE_PRECONFIG,
|
|
LPCTSTR pstrProxyName = NULL,
|
|
LPCTSTR pstrProxyBypass = NULL,
|
|
DWORD dwFlags = 0 );
|
|
|
|
virtual ~CInternetSessionEx();
|
|
|
|
public:
|
|
|
|
//获取错误信息
|
|
void GetErrorString(DWORD dwErrorCode,CString& sText);
|
|
|
|
//回调发送错误信息
|
|
virtual void OnStatusCallback(DWORD dwContext, DWORD dwInternetStatus, LPVOID lpvStatusInfomration, DWORD dwStatusInformationLen);
|
|
|
|
#ifdef _DEBUG
|
|
virtual void Dump(CDumpContext& dc) const{}
|
|
#endif
|
|
|
|
public:
|
|
|
|
HWND m_hMainWnd;
|
|
};
|
|
|
|
#endif //_UIIINTERNETSESSION_H__
|