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.

44 lines
2.2 KiB

  1. // --------------------------------------------------------------------------------
  2. // Inetprot.h
  3. // Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  4. // Steven J. Bailey
  5. // --------------------------------------------------------------------------------
  6. #ifndef __INETPROP_H
  7. #define __INETPROP_H
  8. // --------------------------------------------------------------------------------
  9. // INETPROT
  10. // --------------------------------------------------------------------------------
  11. #define INETPROT_SIZEISKNOWN FLAG01 // Total size of the protocol data is known
  12. #define INETPROT_DOWNLOADED FLAG02 // The data is all present in pLockBytes
  13. // --------------------------------------------------------------------------------
  14. // PROTOCOLSOURCE
  15. // --------------------------------------------------------------------------------
  16. typedef struct tagPROTOCOLSOURCE {
  17. DWORD dwFlags; // INETPROT_xxx Flags
  18. ILockBytes *pLockBytes; // Lock Bytes
  19. ULARGE_INTEGER cbSize; // Total sizeof pLockBytes if INETPROT_TOTALSIZE
  20. ULARGE_INTEGER offExternal; // External UrlMon Offset
  21. ULARGE_INTEGER offInternal; // Internal MsgMon Offset
  22. } PROTOCOLSOURCE, *LPPROTOCOLSOURCE;
  23. // --------------------------------------------------------------------------------
  24. // HrPluggableProtocolRead
  25. // --------------------------------------------------------------------------------
  26. HRESULT HrPluggableProtocolRead(
  27. /* in,out */ LPPROTOCOLSOURCE pSource,
  28. /* in,out */ LPVOID pv,
  29. /* in */ ULONG cb,
  30. /* out */ ULONG *pcbRead);
  31. // --------------------------------------------------------------------------------
  32. // HrPluggableProtocolSeek
  33. // --------------------------------------------------------------------------------
  34. HRESULT HrPluggableProtocolSeek(
  35. /* in,out */ LPPROTOCOLSOURCE pSource,
  36. /* in */ LARGE_INTEGER dlibMove,
  37. /* in */ DWORD dwOrigin,
  38. /* out */ ULARGE_INTEGER *plibNew);
  39. #endif // __INETPROP_H