windows-nt/Source/XPSP1/NT/printscan/print/spooler/inetpp2/server/othercon.hxx

50 lines
1,013 B
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifndef _OTHERCON_HXX
#define _OTHERCON_HXX
#include "anycon.hxx"
#include "pusrdata.hxx"
class COtherConnection :
public CAnyConnection,
public CCriticalSection {
public:
COtherConnection (
BOOL bSecure,
INTERNET_PORT nServerPort,
LPCTSTR lpszUserName,
LPCTSTR lpszPassword,
BOOL bIgnoreSecurityDlg);
virtual ~COtherConnection ();
virtual HINTERNET OpenRequest (
LPTSTR lpszUrl);
virtual BOOL SendRequest(
HINTERNET hReq,
LPCTSTR lpszHdr,
DWORD cbHdr,
LPBYTE pidi);
virtual BOOL SendRequest(
HINTERNET hReq,
LPCTSTR lpszHdr,
CStream *pStream);
virtual BOOL ReadFile (
HINTERNET hReq,
LPVOID lpvBuffer,
DWORD cbBuffer,
LPDWORD lpcbRd);
inline BOOL bValid () CONST {return m_bValid;};
private:
BOOL m_bValid;
};
#endif