Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1013 B

  1. #ifndef _OTHERCON_HXX
  2. #define _OTHERCON_HXX
  3. #include "anycon.hxx"
  4. #include "pusrdata.hxx"
  5. class COtherConnection :
  6. public CAnyConnection,
  7. public CCriticalSection {
  8. public:
  9. COtherConnection (
  10. BOOL bSecure,
  11. INTERNET_PORT nServerPort,
  12. LPCTSTR lpszUserName,
  13. LPCTSTR lpszPassword,
  14. BOOL bIgnoreSecurityDlg);
  15. virtual ~COtherConnection ();
  16. virtual HINTERNET OpenRequest (
  17. LPTSTR lpszUrl);
  18. virtual BOOL SendRequest(
  19. HINTERNET hReq,
  20. LPCTSTR lpszHdr,
  21. DWORD cbHdr,
  22. LPBYTE pidi);
  23. virtual BOOL SendRequest(
  24. HINTERNET hReq,
  25. LPCTSTR lpszHdr,
  26. CStream *pStream);
  27. virtual BOOL ReadFile (
  28. HINTERNET hReq,
  29. LPVOID lpvBuffer,
  30. DWORD cbBuffer,
  31. LPDWORD lpcbRd);
  32. inline BOOL bValid () CONST {return m_bValid;};
  33. private:
  34. BOOL m_bValid;
  35. };
  36. #endif