Leaked source code of windows server 2003
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.

51 lines
1.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  5. //
  6. // File: protbase.hxx
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 11-07-1996 JohannP (Johann Posch) Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef _RESPROT_HXX_
  18. #define _RESPROT_HXX_
  19. #define offsetof(s,m) (size_t)&(((s *)0)->m)
  20. #define GETPPARENT(pmemb, struc, membname) ((struc FAR *)(((char FAR *)(pmemb))-offsetof(struc, membname)))
  21. #define MAX_URL_SIZE INTERNET_MAX_URL_LENGTH
  22. class CResProtocol : public CBaseProtocol
  23. {
  24. public:
  25. STDMETHODIMP Start(LPCWSTR szUrl,IOInetProtocolSink *pProtSink,
  26. IOInetBindInfo *pOIBindInfo, DWORD grfSTI, DWORD dwReserved);
  27. STDMETHODIMP Continue(PROTOCOLDATA *pStateInfo);
  28. STDMETHODIMP Read(void *pv,ULONG cb,ULONG *pcbRead);
  29. STDMETHODIMP Seek(LARGE_INTEGER dlibMove,DWORD dwOrigin,
  30. ULARGE_INTEGER *plibNewPosition);
  31. public:
  32. CResProtocol(REFCLSID rclsid, IUnknown *pUnkOuter, IUnknown **ppUnkInner);
  33. virtual ~CResProtocol();
  34. private:
  35. STDMETHODIMP Bind();
  36. private:
  37. };
  38. #endif // _RESPROT_HXX_