Windows2003-3790/inetcore/outlookexpress/inetcomm/mimeole/inetprot.h
2020-09-30 16:53:55 +02:00

45 lines
2.2 KiB
C

// --------------------------------------------------------------------------------
// Inetprot.h
// Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
// Steven J. Bailey
// --------------------------------------------------------------------------------
#ifndef __INETPROP_H
#define __INETPROP_H
// --------------------------------------------------------------------------------
// INETPROT
// --------------------------------------------------------------------------------
#define INETPROT_SIZEISKNOWN FLAG01 // Total size of the protocol data is known
#define INETPROT_DOWNLOADED FLAG02 // The data is all present in pLockBytes
// --------------------------------------------------------------------------------
// PROTOCOLSOURCE
// --------------------------------------------------------------------------------
typedef struct tagPROTOCOLSOURCE {
DWORD dwFlags; // INETPROT_xxx Flags
ILockBytes *pLockBytes; // Lock Bytes
ULARGE_INTEGER cbSize; // Total sizeof pLockBytes if INETPROT_TOTALSIZE
ULARGE_INTEGER offExternal; // External UrlMon Offset
ULARGE_INTEGER offInternal; // Internal MsgMon Offset
} PROTOCOLSOURCE, *LPPROTOCOLSOURCE;
// --------------------------------------------------------------------------------
// HrPluggableProtocolRead
// --------------------------------------------------------------------------------
HRESULT HrPluggableProtocolRead(
/* in,out */ LPPROTOCOLSOURCE pSource,
/* in,out */ LPVOID pv,
/* in */ ULONG cb,
/* out */ ULONG *pcbRead);
// --------------------------------------------------------------------------------
// HrPluggableProtocolSeek
// --------------------------------------------------------------------------------
HRESULT HrPluggableProtocolSeek(
/* in,out */ LPPROTOCOLSOURCE pSource,
/* in */ LARGE_INTEGER dlibMove,
/* in */ DWORD dwOrigin,
/* out */ ULARGE_INTEGER *plibNew);
#endif // __INETPROP_H