

/* this ALWAYS GENERATED file contains the definitions for the interfaces */


 /* File created by MIDL compiler version 7.00.0499 */
/* Compiler settings for streamcache.idl:
    Oicf, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, c_ext, robust
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING(  )

#pragma warning( disable: 4049 )  /* more than 64k source lines */


/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 500
#endif

/* verify that the <rpcsal.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCSAL_H_VERSION__
#define __REQUIRED_RPCSAL_H_VERSION__ 100
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __streamcache_h__
#define __streamcache_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/* Forward Declarations */ 

#ifndef __IWMSCacheProxy_FWD_DEFINED__
#define __IWMSCacheProxy_FWD_DEFINED__
typedef interface IWMSCacheProxy IWMSCacheProxy;
#endif 	/* __IWMSCacheProxy_FWD_DEFINED__ */


#ifndef __IWMSCacheProxyCallback_FWD_DEFINED__
#define __IWMSCacheProxyCallback_FWD_DEFINED__
typedef interface IWMSCacheProxyCallback IWMSCacheProxyCallback;
#endif 	/* __IWMSCacheProxyCallback_FWD_DEFINED__ */


#ifndef __IWMSCacheProxyServer_FWD_DEFINED__
#define __IWMSCacheProxyServer_FWD_DEFINED__
typedef interface IWMSCacheProxyServer IWMSCacheProxyServer;
#endif 	/* __IWMSCacheProxyServer_FWD_DEFINED__ */


#ifndef __IWMSCacheProxyServerCallback_FWD_DEFINED__
#define __IWMSCacheProxyServerCallback_FWD_DEFINED__
typedef interface IWMSCacheProxyServerCallback IWMSCacheProxyServerCallback;
#endif 	/* __IWMSCacheProxyServerCallback_FWD_DEFINED__ */


#ifndef __IWMSCacheItemDescriptor_FWD_DEFINED__
#define __IWMSCacheItemDescriptor_FWD_DEFINED__
typedef interface IWMSCacheItemDescriptor IWMSCacheItemDescriptor;
#endif 	/* __IWMSCacheItemDescriptor_FWD_DEFINED__ */


#ifndef __IWMSCacheItemCollection_FWD_DEFINED__
#define __IWMSCacheItemCollection_FWD_DEFINED__
typedef interface IWMSCacheItemCollection IWMSCacheItemCollection;
#endif 	/* __IWMSCacheItemCollection_FWD_DEFINED__ */


/* header files for imported files */
#include "objidl.h"
#include "nsscore.h"
#include "DataContainerVersion.h"
#include "event.h"
#include "WMSProxy.h"

#ifdef __cplusplus
extern "C"{
#endif 


/* interface __MIDL_itf_streamcache_0000_0000 */
/* [local] */ 

//*****************************************************************************
//
// Microsoft Windows Media
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// Automatically generated by Midl from streamCache.idl
//
// DO NOT EDIT THIS FILE.
//
//*****************************************************************************






EXTERN_GUID( IID_IWMSCacheProxy,               0x2E34AB83,0x0D3D,0x11d2,0x9E,0xEE,0x00,0x60,0x97,0xD2,0xD7,0xCF );
EXTERN_GUID( IID_IWMSCacheProxyCallback,       0x2E34AB84,0x0D3D,0x11d2,0x9E,0xEE,0x00,0x60,0x97,0xD2,0xD7,0xCF );
EXTERN_GUID( IID_IWMSCacheProxyServer,         0x68F2A550,0xD815,0x11D2,0xBE,0xF6,0x00,0xA0,0xC9,0x5E,0xC3,0x43 );
EXTERN_GUID( IID_IWMSCacheProxyServerCallback, 0x68F2A551,0xD815,0x11D2,0xBE,0xF6,0x00,0xA0,0xC9,0x5E,0xC3,0x43 );
EXTERN_GUID( IID_IWMSCacheItemDescriptor,      0xC3CBA330,0xAC05,0x11D2,0xBE,0xF0,0x00,0xA0,0xC9,0x5E,0xC3,0x43 );
EXTERN_GUID( IID_IWMSCacheItemCollection,      0xE6E05D80,0xF45C,0x11D2,0xBE,0xFE,0x00,0xA0,0xC9,0x5E,0xC3,0x43 );
typedef /* [public] */ 
enum WMS_CACHE_QUERY_MISS_RESPONSE
    {	WMS_CACHE_QUERY_MISS_SKIP	= 0,
	WMS_CACHE_QUERY_MISS_DISCONNECT	= ( WMS_CACHE_QUERY_MISS_SKIP + 1 ) ,
	WMS_CACHE_QUERY_MISS_REDIRECT	= ( WMS_CACHE_QUERY_MISS_DISCONNECT + 1 ) ,
	WMS_CACHE_QUERY_MISS_REDIRECT_TO_PROXY	= ( WMS_CACHE_QUERY_MISS_REDIRECT + 1 ) ,
	WMS_CACHE_QUERY_MISS_PLAY_BROADCAST	= ( WMS_CACHE_QUERY_MISS_REDIRECT_TO_PROXY + 1 ) ,
	WMS_CACHE_QUERY_MISS_PLAY_ON_DEMAND	= ( WMS_CACHE_QUERY_MISS_PLAY_BROADCAST + 1 ) ,
	WMS_CACHE_QUERY_MISS_FORWARD_REQUEST	= ( WMS_CACHE_QUERY_MISS_PLAY_ON_DEMAND + 1 ) ,
	WMS_CACHE_QUERY_MISS_PROCESS_REQUEST	= ( WMS_CACHE_QUERY_MISS_FORWARD_REQUEST + 1 ) 
    } 	WMS_CACHE_QUERY_MISS_RESPONSE;

typedef /* [public] */ 
enum WMS_CACHE_QUERY_RESPONSE
    {	WMS_CACHE_QUERY_HIT_PLAY_ON_DEMAND	= 0,
	WMS_CACHE_QUERY_HIT_PLAY_BROADCAST	= ( WMS_CACHE_QUERY_HIT_PLAY_ON_DEMAND + 1 ) ,
	WMS_CACHE_QUERY_HIT_PROCESS_REQUEST	= ( WMS_CACHE_QUERY_HIT_PLAY_BROADCAST + 1 ) ,
	WMS_CACHE_QUERY_MISS	= ( WMS_CACHE_QUERY_HIT_PROCESS_REQUEST + 1 ) 
    } 	WMS_CACHE_QUERY_RESPONSE;

typedef /* [public] */ 
enum WMS_CACHE_VERSION_COMPARE_RESPONSE
    {	WMS_CACHE_VERSION_FAIL_TO_CHECK_VERSION	= 0,
	WMS_CACHE_VERSION_CACHE_STALE	= ( WMS_CACHE_VERSION_FAIL_TO_CHECK_VERSION + 1 ) ,
	WMS_CACHE_VERSION_CACHE_UP_TO_DATE	= ( WMS_CACHE_VERSION_CACHE_STALE + 1 ) 
    } 	WMS_CACHE_VERSION_COMPARE_RESPONSE;

typedef /* [public] */ 
enum WMS_CACHE_CONTENT_TYPE_FLAGS
    {	WMS_CACHE_CONTENT_TYPE_BROADCAST	= 0x1,
	WMS_CACHE_CONTENT_TYPE_PLAYLIST	= 0x2
    } 	WMS_CACHE_CONTENT_TYPE_FLAGS;

typedef /* [public] */ 
enum WMS_CACHE_QUERY_TYPE_FLAGS
    {	WMS_CACHE_QUERY_OPEN	= 0x1,
	WMS_CACHE_QUERY_GET_CONTENT_INFO	= 0x2,
	WMS_CACHE_QUERY_CACHE_EVENT	= 0x4,
	WMS_CACHE_QUERY_REVERSE_PROXY	= 0x8,
	WMS_CACHE_QUERY_LOCAL_EVENT	= 0x10
    } 	WMS_CACHE_QUERY_TYPE_FLAGS;

typedef /* [public] */ 
enum WMS_CACHE_CONTENT_DOWNLOAD_FLAGS
    {	WMS_CONTENT_DOWNLOAD_ABORT_IF_BCAST	= 0x1
    } 	WMS_CACHE_CONTENT_DOWNLOAD_FLAGS;

typedef /* [public] */ 
enum WMS_CACHE_REMOTE_EVENT_FLAGS
    {	WMS_CACHE_REMOTE_OPEN	= 0x1,
	WMS_CACHE_REMOTE_CLOSE	= 0x2,
	WMS_CACHE_REMOTE_LOG	= 0x4
    } 	WMS_CACHE_REMOTE_EVENT_FLAGS;




extern RPC_IF_HANDLE __MIDL_itf_streamcache_0000_0000_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_streamcache_0000_0000_v0_0_s_ifspec;

#ifndef __IWMSCacheProxy_INTERFACE_DEFINED__
#define __IWMSCacheProxy_INTERFACE_DEFINED__

/* interface IWMSCacheProxy */
/* [helpstring][version][uuid][unique][object] */ 


EXTERN_C const IID IID_IWMSCacheProxy;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("2E34AB83-0D3D-11d2-9EEE-006097D2D7CF")
    IWMSCacheProxy : public IUnknown
    {
    public:
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryCache( 
            /* [in] */ __RPC__in BSTR bstrOriginUrl,
            /* [in] */ __RPC__in_opt IWMSContext *pUserContext,
            /* [in] */ __RPC__in_opt IWMSCommandContext *pCommandContext,
            /* [in] */ __RPC__in_opt IWMSContext *pPresentationContext,
            /* [in] */ long lQueryType,
            /* [in] */ __RPC__in_opt IWMSCacheProxyCallback *pCallback,
            /* [in] */ VARIANT varContext) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryCacheMissPolicy( 
            /* [in] */ __RPC__in BSTR bstrOriginUrl,
            /* [in] */ __RPC__in_opt IWMSContext *pUserContext,
            /* [in] */ __RPC__in_opt IWMSCommandContext *pCommandContext,
            /* [in] */ __RPC__in_opt IWMSContext *pPresentationContext,
            /* [in] */ __RPC__in_opt IUnknown *pCachePluginContext,
            /* [in] */ long lQueryType,
            /* [in] */ __RPC__in_opt IWMSCacheProxyCallback *pCallback,
            /* [in] */ VARIANT varContext) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RemoveCacheItem( 
            /* [in] */ __RPC__in BSTR bstrOriginUrl,
            /* [in] */ __RPC__in_opt IWMSCacheProxyCallback *pCallback,
            /* [in] */ VARIANT varContext) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RemoveAllCacheItems( 
            /* [in] */ __RPC__in_opt IWMSCacheProxyCallback *pCallback,
            /* [in] */ VARIANT varContext) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AddCacheItem( 
            /* [in] */ __RPC__in BSTR bstrOriginUrl,
            /* [in] */ __RPC__in BSTR bstrPrestuffUrl,
            /* [in] */ long lExpiration,
            /* [in] */ long lBandwidth,
            /* [in] */ long lRemoteEventFlags,
            /* [in] */ __RPC__in_opt IWMSCacheProxyCallback *pCallback,
            /* [in] */ VARIANT varContext) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QuerySpaceForCacheItem( 
            /* [in] */ long lContentSizeLow,
            /* [in] */ long lContentSizeHigh,
            /* [out] */ __RPC__out VARIANT_BOOL *pvarfSpaceAvail) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE FindCacheItem( 
            /* [in] */ __RPC__in BSTR bstrOriginUrl,
            /* [out] */ __RPC__deref_out_opt IWMSCacheItemDescriptor **ppCacheItemDescriptor) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreateCacheItemCollection( 
            /* [out] */ __RPC__deref_out_opt IWMSCacheItemCollection **ppCacheItemCollection) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnCacheClientClose( 
            /* [in] */ HRESULT resultHr,
            /* [in] */ __RPC__in_opt IWMSContext *pUserContext,
            /* [in] */ __RPC__in_opt IWMSContext *pPresentationContext) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IWMSCacheProxyVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IWMSCacheProxy * This,
            /* [in] */ __RPC__in REFIID riid,
            /* [iid_is][out] */ 
            __RPC__deref_out  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IWMSCacheProxy * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IWMSCacheProxy * This);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *QueryCache )( 
            IWMSCacheProxy * This,
            /* [in] */ __RPC__in BSTR bstrOriginUrl,
            /* [in] */ __RPC__in_opt IWMSContext *pUserContext,
            /* [in] */ __RPC__in_opt IWMSCommandContext *pCommandContext,
            /* [in] */ __RPC__in_opt IWMSContext *pPresentationContext,
            /* [in] */ long lQueryType,
            /* [in] */ __RPC__in_opt IWMSCacheProxyCallback *pCallback,
            /* [in] */ VARIANT varContext);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *QueryCacheMissPolicy )( 
            IWMSCacheProxy * This,
            /* [in] */ __RPC__in BSTR bstrOriginUrl,
            /* [in] */ __RPC__in_opt IWMSContext *pUserContext,
            /* [in] */ __RPC__in_opt IWMSCommandContext *pCommandContext,
            /* [in] */ __RPC__in_opt IWMSContext *pPresentationContext,
            /* [in] */ __RPC__in_opt IUnknown *pCachePluginContext,
            /* [in] */ long lQueryType,
            /* [in] */ __RPC__in_opt IWMSCacheProxyCallback *pCallback,
            /* [in] */ VARIANT varContext);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RemoveCacheItem )( 
            IWMSCacheProxy * This,
            /* [in] */ __RPC__in BSTR bstrOriginUrl,
            /* [in] */ __RPC__in_opt IWMSCacheProxyCallback *pCallback,
            /* [in] */ VARIANT varContext);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RemoveAllCacheItems )( 
            IWMSCacheProxy * This,
            /* [in] */ __RPC__in_opt IWMSCacheProxyCallback *pCallback,
            /* [in] */ VARIANT varContext);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddCacheItem )( 
            IWMSCacheProxy * This,
            /* [in] */ __RPC__in BSTR bstrOriginUrl,
            /* [in] */ __RPC__in BSTR bstrPrestuffUrl,
            /* [in] */ long lExpiration,
            /* [in] */ long lBandwidth,
            /* [in] */ long lRemoteEventFlags,
            /* [in] */ __RPC__in_opt IWMSCacheProxyCallback *pCallback,
            /* [in] */ VARIANT varContext);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *QuerySpaceForCacheItem )( 
            IWMSCacheProxy * This,
            /* [in] */ long lContentSizeLow,
            /* [in] */ long lContentSizeHigh,
            /* [out] */ __RPC__out VARIANT_BOOL *pvarfSpaceAvail);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *FindCacheItem )( 
            IWMSCacheProxy * This,
            /* [in] */ __RPC__in BSTR bstrOriginUrl,
            /* [out] */ __RPC__deref_out_opt IWMSCacheItemDescriptor **ppCacheItemDescriptor);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateCacheItemCollection )( 
            IWMSCacheProxy * This,
            /* [out] */ __RPC__deref_out_opt IWMSCacheItemCollection **ppCacheItemCollection);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnCacheClientClose )( 
            IWMSCacheProxy * This,
            /* [in] */ HRESULT resultHr,
            /* [in] */ __RPC__in_opt IWMSContext *pUserContext,
            /* [in] */ __RPC__in_opt IWMSContext *pPresentationContext);
        
        END_INTERFACE
    } IWMSCacheProxyVtbl;

    interface IWMSCacheProxy
    {
        CONST_VTBL struct IWMSCacheProxyVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IWMSCacheProxy_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define IWMSCacheProxy_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define IWMSCacheProxy_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define IWMSCacheProxy_QueryCache(This,bstrOriginUrl,pUserContext,pCommandContext,pPresentationContext,lQueryType,pCallback,varContext)	\
    ( (This)->lpVtbl -> QueryCache(This,bstrOriginUrl,pUserContext,pCommandContext,pPresentationContext,lQueryType,pCallback,varContext) ) 

#define IWMSCacheProxy_QueryCacheMissPolicy(This,bstrOriginUrl,pUserContext,pCommandContext,pPresentationContext,pCachePluginContext,lQueryType,pCallback,varContext)	\
    ( (This)->lpVtbl -> QueryCacheMissPolicy(This,bstrOriginUrl,pUserContext,pCommandContext,pPresentationContext,pCachePluginContext,lQueryType,pCallback,varContext) ) 

#define IWMSCacheProxy_RemoveCacheItem(This,bstrOriginUrl,pCallback,varContext)	\
    ( (This)->lpVtbl -> RemoveCacheItem(This,bstrOriginUrl,pCallback,varContext) ) 

#define IWMSCacheProxy_RemoveAllCacheItems(This,pCallback,varContext)	\
    ( (This)->lpVtbl -> RemoveAllCacheItems(This,pCallback,varContext) ) 

#define IWMSCacheProxy_AddCacheItem(This,bstrOriginUrl,bstrPrestuffUrl,lExpiration,lBandwidth,lRemoteEventFlags,pCallback,varContext)	\
    ( (This)->lpVtbl -> AddCacheItem(This,bstrOriginUrl,bstrPrestuffUrl,lExpiration,lBandwidth,lRemoteEventFlags,pCallback,varContext) ) 

#define IWMSCacheProxy_QuerySpaceForCacheItem(This,lContentSizeLow,lContentSizeHigh,pvarfSpaceAvail)	\
    ( (This)->lpVtbl -> QuerySpaceForCacheItem(This,lContentSizeLow,lContentSizeHigh,pvarfSpaceAvail) ) 

#define IWMSCacheProxy_FindCacheItem(This,bstrOriginUrl,ppCacheItemDescriptor)	\
    ( (This)->lpVtbl -> FindCacheItem(This,bstrOriginUrl,ppCacheItemDescriptor) ) 

#define IWMSCacheProxy_CreateCacheItemCollection(This,ppCacheItemCollection)	\
    ( (This)->lpVtbl -> CreateCacheItemCollection(This,ppCacheItemCollection) ) 

#define IWMSCacheProxy_OnCacheClientClose(This,resultHr,pUserContext,pPresentationContext)	\
    ( (This)->lpVtbl -> OnCacheClientClose(This,resultHr,pUserContext,pPresentationContext) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __IWMSCacheProxy_INTERFACE_DEFINED__ */


/* interface __MIDL_itf_streamcache_0000_0001 */
/* [local] */ 




extern RPC_IF_HANDLE __MIDL_itf_streamcache_0000_0001_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_streamcache_0000_0001_v0_0_s_ifspec;

#ifndef __IWMSCacheProxyCallback_INTERFACE_DEFINED__
#define __IWMSCacheProxyCallback_INTERFACE_DEFINED__

/* interface IWMSCacheProxyCallback */
/* [helpstring][version][uuid][unique][object] */ 


EXTERN_C const IID IID_IWMSCacheProxyCallback;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("2E34AB84-0D3D-11d2-9EEE-006097D2D7CF")
    IWMSCacheProxyCallback : public IUnknown
    {
    public:
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnQueryCache( 
            /* [in] */ long lHr,
            /* [in] */ WMS_CACHE_QUERY_RESPONSE Response,
            /* [in] */ __RPC__in BSTR bstrCacheUrl,
            /* [in] */ __RPC__in_opt IWMSContext *pContentInfo,
            /* [in] */ __RPC__in_opt IUnknown *pCachePluginContext,
            /* [in] */ VARIANT varContext) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnQueryCacheMissPolicy( 
            /* [in] */ long lHr,
            /* [in] */ WMS_CACHE_QUERY_MISS_RESPONSE CacheMissPolicy,
            /* [in] */ __RPC__in BSTR bstrUrl,
            /* [in] */ __RPC__in_opt IWMSProxyContext *pProxyContext,
            /* [in] */ __RPC__in_opt IWMSContext *pContentInfo,
            /* [in] */ VARIANT varContext) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnRemoveCacheItem( 
            /* [in] */ long lHr,
            /* [in] */ VARIANT varContext) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnRemoveAllCacheItems( 
            /* [in] */ long lHr,
            /* [in] */ VARIANT varContext) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnAddCacheItem( 
            /* [in] */ long lHr,
            /* [in] */ __RPC__in_opt IWMSCacheItemDescriptor *pCacheItemDescriptor,
            /* [in] */ VARIANT varServerContext) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IWMSCacheProxyCallbackVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IWMSCacheProxyCallback * This,
            /* [in] */ __RPC__in REFIID riid,
            /* [iid_is][out] */ 
            __RPC__deref_out  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IWMSCacheProxyCallback * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IWMSCacheProxyCallback * This);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnQueryCache )( 
            IWMSCacheProxyCallback * This,
            /* [in] */ long lHr,
            /* [in] */ WMS_CACHE_QUERY_RESPONSE Response,
            /* [in] */ __RPC__in BSTR bstrCacheUrl,
            /* [in] */ __RPC__in_opt IWMSContext *pContentInfo,
            /* [in] */ __RPC__in_opt IUnknown *pCachePluginContext,
            /* [in] */ VARIANT varContext);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnQueryCacheMissPolicy )( 
            IWMSCacheProxyCallback * This,
            /* [in] */ long lHr,
            /* [in] */ WMS_CACHE_QUERY_MISS_RESPONSE CacheMissPolicy,
            /* [in] */ __RPC__in BSTR bstrUrl,
            /* [in] */ __RPC__in_opt IWMSProxyContext *pProxyContext,
            /* [in] */ __RPC__in_opt IWMSContext *pContentInfo,
            /* [in] */ VARIANT varContext);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnRemoveCacheItem )( 
            IWMSCacheProxyCallback * This,
            /* [in] */ long lHr,
            /* [in] */ VARIANT varContext);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnRemoveAllCacheItems )( 
            IWMSCacheProxyCallback * This,
            /* [in] */ long lHr,
            /* [in] */ VARIANT varContext);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnAddCacheItem )( 
            IWMSCacheProxyCallback * This,
            /* [in] */ long lHr,
            /* [in] */ __RPC__in_opt IWMSCacheItemDescriptor *pCacheItemDescriptor,
            /* [in] */ VARIANT varServerContext);
        
        END_INTERFACE
    } IWMSCacheProxyCallbackVtbl;

    interface IWMSCacheProxyCallback
    {
        CONST_VTBL struct IWMSCacheProxyCallbackVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IWMSCacheProxyCallback_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define IWMSCacheProxyCallback_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define IWMSCacheProxyCallback_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define IWMSCacheProxyCallback_OnQueryCache(This,lHr,Response,bstrCacheUrl,pContentInfo,pCachePluginContext,varContext)	\
    ( (This)->lpVtbl -> OnQueryCache(This,lHr,Response,bstrCacheUrl,pContentInfo,pCachePluginContext,varContext) ) 

#define IWMSCacheProxyCallback_OnQueryCacheMissPolicy(This,lHr,CacheMissPolicy,bstrUrl,pProxyContext,pContentInfo,varContext)	\
    ( (This)->lpVtbl -> OnQueryCacheMissPolicy(This,lHr,CacheMissPolicy,bstrUrl,pProxyContext,pContentInfo,varContext) ) 

#define IWMSCacheProxyCallback_OnRemoveCacheItem(This,lHr,varContext)	\
    ( (This)->lpVtbl -> OnRemoveCacheItem(This,lHr,varContext) ) 

#define IWMSCacheProxyCallback_OnRemoveAllCacheItems(This,lHr,varContext)	\
    ( (This)->lpVtbl -> OnRemoveAllCacheItems(This,lHr,varContext) ) 

#define IWMSCacheProxyCallback_OnAddCacheItem(This,lHr,pCacheItemDescriptor,varServerContext)	\
    ( (This)->lpVtbl -> OnAddCacheItem(This,lHr,pCacheItemDescriptor,varServerContext) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __IWMSCacheProxyCallback_INTERFACE_DEFINED__ */


#ifndef __IWMSCacheProxyServer_INTERFACE_DEFINED__
#define __IWMSCacheProxyServer_INTERFACE_DEFINED__

/* interface IWMSCacheProxyServer */
/* [helpstring][version][uuid][unique][object] */ 


EXTERN_C const IID IID_IWMSCacheProxyServer;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("68F2A550-D815-11D2-BEF6-00A0C95EC343")
    IWMSCacheProxyServer : public IUnknown
    {
    public:
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetContentInformation( 
            /* [in] */ __RPC__in BSTR bstrOriginUrl,
            /* [in] */ __RPC__in_opt IWMSContext *pPresentationContext,
            /* [in] */ __RPC__in_opt IWMSCacheProxy *pICacheProxy,
            /* [optional][in] */ __RPC__in_opt IWMSProxyContext *pIProxyContext,
            /* [optional][in] */ __RPC__in_opt IWMSCacheProxyServerCallback *pCallback,
            /* [optional][in] */ VARIANT varContext) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CompareContentInformation( 
            /* [in] */ __RPC__in BSTR bstrOriginUrl,
            /* [in] */ __RPC__in_opt IWMSContext *pContentInfo,
            /* [in] */ __RPC__in_opt IWMSContext *pPresentationContext,
            /* [in] */ __RPC__in_opt IWMSCacheProxy *pICacheProxy,
            /* [optional][in] */ __RPC__in_opt IWMSProxyContext *pIProxyContext,
            /* [optional][in] */ __RPC__in_opt IWMSCacheProxyServerCallback *pCallback,
            /* [optional][in] */ VARIANT varContext) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE DownloadContent( 
            /* [in] */ __RPC__in BSTR bstrOriginUrl,
            /* [in] */ __RPC__in BSTR bstrCacheUrl,
            /* [in] */ long lBandwidth,
            /* [in] */ long lQuotaLow,
            /* [in] */ long lQuotaHigh,
            /* [in] */ long lBitFlags,
            /* [in] */ __RPC__in_opt IWMSCacheProxy *pICacheProxy,
            /* [optional][in] */ __RPC__in_opt IWMSProxyContext *pIProxyContext,
            /* [optional][in] */ __RPC__in_opt IWMSCacheProxyServerCallback *pCallback,
            /* [optional][in] */ VARIANT varContext) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CancelDownloadContent( 
            /* [in] */ __RPC__in_opt IWMSContext *pArchiveContext,
            /* [optional][in] */ __RPC__in_opt IWMSCacheProxyServerCallback *pCallback,
            /* [optional][in] */ VARIANT varContext) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IWMSCacheProxyServerVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IWMSCacheProxyServer * This,
            /* [in] */ __RPC__in REFIID riid,
            /* [iid_is][out] */ 
            __RPC__deref_out  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IWMSCacheProxyServer * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IWMSCacheProxyServer * This);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetContentInformation )( 
            IWMSCacheProxyServer * This,
            /* [in] */ __RPC__in BSTR bstrOriginUrl,
            /* [in] */ __RPC__in_opt IWMSContext *pPresentationContext,
            /* [in] */ __RPC__in_opt IWMSCacheProxy *pICacheProxy,
            /* [optional][in] */ __RPC__in_opt IWMSProxyContext *pIProxyContext,
            /* [optional][in] */ __RPC__in_opt IWMSCacheProxyServerCallback *pCallback,
            /* [optional][in] */ VARIANT varContext);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CompareContentInformation )( 
            IWMSCacheProxyServer * This,
            /* [in] */ __RPC__in BSTR bstrOriginUrl,
            /* [in] */ __RPC__in_opt IWMSContext *pContentInfo,
            /* [in] */ __RPC__in_opt IWMSContext *pPresentationContext,
            /* [in] */ __RPC__in_opt IWMSCacheProxy *pICacheProxy,
            /* [optional][in] */ __RPC__in_opt IWMSProxyContext *pIProxyContext,
            /* [optional][in] */ __RPC__in_opt IWMSCacheProxyServerCallback *pCallback,
            /* [optional][in] */ VARIANT varContext);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *DownloadContent )( 
            IWMSCacheProxyServer * This,
            /* [in] */ __RPC__in BSTR bstrOriginUrl,
            /* [in] */ __RPC__in BSTR bstrCacheUrl,
            /* [in] */ long lBandwidth,
            /* [in] */ long lQuotaLow,
            /* [in] */ long lQuotaHigh,
            /* [in] */ long lBitFlags,
            /* [in] */ __RPC__in_opt IWMSCacheProxy *pICacheProxy,
            /* [optional][in] */ __RPC__in_opt IWMSProxyContext *pIProxyContext,
            /* [optional][in] */ __RPC__in_opt IWMSCacheProxyServerCallback *pCallback,
            /* [optional][in] */ VARIANT varContext);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CancelDownloadContent )( 
            IWMSCacheProxyServer * This,
            /* [in] */ __RPC__in_opt IWMSContext *pArchiveContext,
            /* [optional][in] */ __RPC__in_opt IWMSCacheProxyServerCallback *pCallback,
            /* [optional][in] */ VARIANT varContext);
        
        END_INTERFACE
    } IWMSCacheProxyServerVtbl;

    interface IWMSCacheProxyServer
    {
        CONST_VTBL struct IWMSCacheProxyServerVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IWMSCacheProxyServer_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define IWMSCacheProxyServer_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define IWMSCacheProxyServer_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define IWMSCacheProxyServer_GetContentInformation(This,bstrOriginUrl,pPresentationContext,pICacheProxy,pIProxyContext,pCallback,varContext)	\
    ( (This)->lpVtbl -> GetContentInformation(This,bstrOriginUrl,pPresentationContext,pICacheProxy,pIProxyContext,pCallback,varContext) ) 

#define IWMSCacheProxyServer_CompareContentInformation(This,bstrOriginUrl,pContentInfo,pPresentationContext,pICacheProxy,pIProxyContext,pCallback,varContext)	\
    ( (This)->lpVtbl -> CompareContentInformation(This,bstrOriginUrl,pContentInfo,pPresentationContext,pICacheProxy,pIProxyContext,pCallback,varContext) ) 

#define IWMSCacheProxyServer_DownloadContent(This,bstrOriginUrl,bstrCacheUrl,lBandwidth,lQuotaLow,lQuotaHigh,lBitFlags,pICacheProxy,pIProxyContext,pCallback,varContext)	\
    ( (This)->lpVtbl -> DownloadContent(This,bstrOriginUrl,bstrCacheUrl,lBandwidth,lQuotaLow,lQuotaHigh,lBitFlags,pICacheProxy,pIProxyContext,pCallback,varContext) ) 

#define IWMSCacheProxyServer_CancelDownloadContent(This,pArchiveContext,pCallback,varContext)	\
    ( (This)->lpVtbl -> CancelDownloadContent(This,pArchiveContext,pCallback,varContext) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __IWMSCacheProxyServer_INTERFACE_DEFINED__ */


#ifndef __IWMSCacheProxyServerCallback_INTERFACE_DEFINED__
#define __IWMSCacheProxyServerCallback_INTERFACE_DEFINED__

/* interface IWMSCacheProxyServerCallback */
/* [helpstring][version][uuid][unique][object] */ 


EXTERN_C const IID IID_IWMSCacheProxyServerCallback;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("68F2A551-D815-11D2-BEF6-00A0C95EC343")
    IWMSCacheProxyServerCallback : public IUnknown
    {
    public:
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnGetContentInformation( 
            /* [in] */ long lHr,
            /* [in] */ __RPC__in_opt IWMSContext *pContentInfo,
            /* [in] */ VARIANT varContext) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnCompareContentInformation( 
            /* [in] */ long lHr,
            /* [in] */ WMS_CACHE_VERSION_COMPARE_RESPONSE CompareResponse,
            /* [in] */ __RPC__in_opt IWMSContext *pNewContentInfo,
            /* [in] */ VARIANT varContext) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnDownloadContentProgress( 
            /* [in] */ long lHr,
            /* [in] */ WMS_RECORD_PROGRESS_OPCODE opCode,
            /* [in] */ __RPC__in_opt IWMSContext *pArchiveContext,
            /* [in] */ VARIANT varContext) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnDownloadContentFinished( 
            /* [in] */ long lHr,
            /* [in] */ __RPC__in SAFEARRAY * psaArchiveContexts,
            /* [in] */ VARIANT varContext) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnCancelDownloadContent( 
            /* [in] */ long lHr,
            /* [in] */ VARIANT varContext) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IWMSCacheProxyServerCallbackVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IWMSCacheProxyServerCallback * This,
            /* [in] */ __RPC__in REFIID riid,
            /* [iid_is][out] */ 
            __RPC__deref_out  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IWMSCacheProxyServerCallback * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IWMSCacheProxyServerCallback * This);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnGetContentInformation )( 
            IWMSCacheProxyServerCallback * This,
            /* [in] */ long lHr,
            /* [in] */ __RPC__in_opt IWMSContext *pContentInfo,
            /* [in] */ VARIANT varContext);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnCompareContentInformation )( 
            IWMSCacheProxyServerCallback * This,
            /* [in] */ long lHr,
            /* [in] */ WMS_CACHE_VERSION_COMPARE_RESPONSE CompareResponse,
            /* [in] */ __RPC__in_opt IWMSContext *pNewContentInfo,
            /* [in] */ VARIANT varContext);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnDownloadContentProgress )( 
            IWMSCacheProxyServerCallback * This,
            /* [in] */ long lHr,
            /* [in] */ WMS_RECORD_PROGRESS_OPCODE opCode,
            /* [in] */ __RPC__in_opt IWMSContext *pArchiveContext,
            /* [in] */ VARIANT varContext);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnDownloadContentFinished )( 
            IWMSCacheProxyServerCallback * This,
            /* [in] */ long lHr,
            /* [in] */ __RPC__in SAFEARRAY * psaArchiveContexts,
            /* [in] */ VARIANT varContext);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnCancelDownloadContent )( 
            IWMSCacheProxyServerCallback * This,
            /* [in] */ long lHr,
            /* [in] */ VARIANT varContext);
        
        END_INTERFACE
    } IWMSCacheProxyServerCallbackVtbl;

    interface IWMSCacheProxyServerCallback
    {
        CONST_VTBL struct IWMSCacheProxyServerCallbackVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IWMSCacheProxyServerCallback_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define IWMSCacheProxyServerCallback_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define IWMSCacheProxyServerCallback_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define IWMSCacheProxyServerCallback_OnGetContentInformation(This,lHr,pContentInfo,varContext)	\
    ( (This)->lpVtbl -> OnGetContentInformation(This,lHr,pContentInfo,varContext) ) 

#define IWMSCacheProxyServerCallback_OnCompareContentInformation(This,lHr,CompareResponse,pNewContentInfo,varContext)	\
    ( (This)->lpVtbl -> OnCompareContentInformation(This,lHr,CompareResponse,pNewContentInfo,varContext) ) 

#define IWMSCacheProxyServerCallback_OnDownloadContentProgress(This,lHr,opCode,pArchiveContext,varContext)	\
    ( (This)->lpVtbl -> OnDownloadContentProgress(This,lHr,opCode,pArchiveContext,varContext) ) 

#define IWMSCacheProxyServerCallback_OnDownloadContentFinished(This,lHr,psaArchiveContexts,varContext)	\
    ( (This)->lpVtbl -> OnDownloadContentFinished(This,lHr,psaArchiveContexts,varContext) ) 

#define IWMSCacheProxyServerCallback_OnCancelDownloadContent(This,lHr,varContext)	\
    ( (This)->lpVtbl -> OnCancelDownloadContent(This,lHr,varContext) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __IWMSCacheProxyServerCallback_INTERFACE_DEFINED__ */


#ifndef __IWMSCacheItemDescriptor_INTERFACE_DEFINED__
#define __IWMSCacheItemDescriptor_INTERFACE_DEFINED__

/* interface IWMSCacheItemDescriptor */
/* [helpstring][version][uuid][unique][object] */ 


EXTERN_C const IID IID_IWMSCacheItemDescriptor;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("C3CBA330-AC05-11D2-BEF0-00A0C95EC343")
    IWMSCacheItemDescriptor : public IUnknown
    {
    public:
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetOriginUrl( 
            /* [out] */ __RPC__deref_out_opt BSTR *pbstrOriginUrl) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetCacheUrl( 
            /* [out] */ __RPC__deref_out_opt BSTR *pbstrCacheUrl) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetContentInformation( 
            /* [out] */ __RPC__deref_out_opt IWMSContext **ppContentInfo) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetContentSize( 
            /* [out] */ __RPC__out long *plContentSizeLow,
            /* [out] */ __RPC__out long *plContentSizeHigh) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IWMSCacheItemDescriptorVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IWMSCacheItemDescriptor * This,
            /* [in] */ __RPC__in REFIID riid,
            /* [iid_is][out] */ 
            __RPC__deref_out  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IWMSCacheItemDescriptor * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IWMSCacheItemDescriptor * This);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetOriginUrl )( 
            IWMSCacheItemDescriptor * This,
            /* [out] */ __RPC__deref_out_opt BSTR *pbstrOriginUrl);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCacheUrl )( 
            IWMSCacheItemDescriptor * This,
            /* [out] */ __RPC__deref_out_opt BSTR *pbstrCacheUrl);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetContentInformation )( 
            IWMSCacheItemDescriptor * This,
            /* [out] */ __RPC__deref_out_opt IWMSContext **ppContentInfo);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetContentSize )( 
            IWMSCacheItemDescriptor * This,
            /* [out] */ __RPC__out long *plContentSizeLow,
            /* [out] */ __RPC__out long *plContentSizeHigh);
        
        END_INTERFACE
    } IWMSCacheItemDescriptorVtbl;

    interface IWMSCacheItemDescriptor
    {
        CONST_VTBL struct IWMSCacheItemDescriptorVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IWMSCacheItemDescriptor_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define IWMSCacheItemDescriptor_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define IWMSCacheItemDescriptor_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define IWMSCacheItemDescriptor_GetOriginUrl(This,pbstrOriginUrl)	\
    ( (This)->lpVtbl -> GetOriginUrl(This,pbstrOriginUrl) ) 

#define IWMSCacheItemDescriptor_GetCacheUrl(This,pbstrCacheUrl)	\
    ( (This)->lpVtbl -> GetCacheUrl(This,pbstrCacheUrl) ) 

#define IWMSCacheItemDescriptor_GetContentInformation(This,ppContentInfo)	\
    ( (This)->lpVtbl -> GetContentInformation(This,ppContentInfo) ) 

#define IWMSCacheItemDescriptor_GetContentSize(This,plContentSizeLow,plContentSizeHigh)	\
    ( (This)->lpVtbl -> GetContentSize(This,plContentSizeLow,plContentSizeHigh) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __IWMSCacheItemDescriptor_INTERFACE_DEFINED__ */


#ifndef __IWMSCacheItemCollection_INTERFACE_DEFINED__
#define __IWMSCacheItemCollection_INTERFACE_DEFINED__

/* interface IWMSCacheItemCollection */
/* [helpstring][version][uuid][unique][object] */ 


EXTERN_C const IID IID_IWMSCacheItemCollection;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("E6E05D80-F45C-11D2-BEFE-00A0C95EC343")
    IWMSCacheItemCollection : public IUnknown
    {
    public:
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetCount( 
            /* [out] */ __RPC__out long *plNumCacheItemDescriptors) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetItem( 
            /* [in] */ long lIndex,
            /* [out] */ __RPC__deref_out_opt IWMSCacheItemDescriptor **ppCacheItemDescriptor) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IWMSCacheItemCollectionVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IWMSCacheItemCollection * This,
            /* [in] */ __RPC__in REFIID riid,
            /* [iid_is][out] */ 
            __RPC__deref_out  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IWMSCacheItemCollection * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IWMSCacheItemCollection * This);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCount )( 
            IWMSCacheItemCollection * This,
            /* [out] */ __RPC__out long *plNumCacheItemDescriptors);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetItem )( 
            IWMSCacheItemCollection * This,
            /* [in] */ long lIndex,
            /* [out] */ __RPC__deref_out_opt IWMSCacheItemDescriptor **ppCacheItemDescriptor);
        
        END_INTERFACE
    } IWMSCacheItemCollectionVtbl;

    interface IWMSCacheItemCollection
    {
        CONST_VTBL struct IWMSCacheItemCollectionVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IWMSCacheItemCollection_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define IWMSCacheItemCollection_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define IWMSCacheItemCollection_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define IWMSCacheItemCollection_GetCount(This,plNumCacheItemDescriptors)	\
    ( (This)->lpVtbl -> GetCount(This,plNumCacheItemDescriptors) ) 

#define IWMSCacheItemCollection_GetItem(This,lIndex,ppCacheItemDescriptor)	\
    ( (This)->lpVtbl -> GetItem(This,lIndex,ppCacheItemDescriptor) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __IWMSCacheItemCollection_INTERFACE_DEFINED__ */


/* Additional Prototypes for ALL interfaces */

unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long *, unsigned long            , BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserMarshal(  unsigned long *, unsigned char *, BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); 
void                      __RPC_USER  BSTR_UserFree(     unsigned long *, BSTR * ); 

unsigned long             __RPC_USER  LPSAFEARRAY_UserSize(     unsigned long *, unsigned long            , LPSAFEARRAY * ); 
unsigned char * __RPC_USER  LPSAFEARRAY_UserMarshal(  unsigned long *, unsigned char *, LPSAFEARRAY * ); 
unsigned char * __RPC_USER  LPSAFEARRAY_UserUnmarshal(unsigned long *, unsigned char *, LPSAFEARRAY * ); 
void                      __RPC_USER  LPSAFEARRAY_UserFree(     unsigned long *, LPSAFEARRAY * ); 

unsigned long             __RPC_USER  VARIANT_UserSize(     unsigned long *, unsigned long            , VARIANT * ); 
unsigned char * __RPC_USER  VARIANT_UserMarshal(  unsigned long *, unsigned char *, VARIANT * ); 
unsigned char * __RPC_USER  VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * ); 
void                      __RPC_USER  VARIANT_UserFree(     unsigned long *, VARIANT * ); 

unsigned long             __RPC_USER  BSTR_UserSize64(     unsigned long *, unsigned long            , BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserMarshal64(  unsigned long *, unsigned char *, BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserUnmarshal64(unsigned long *, unsigned char *, BSTR * ); 
void                      __RPC_USER  BSTR_UserFree64(     unsigned long *, BSTR * ); 

unsigned long             __RPC_USER  LPSAFEARRAY_UserSize64(     unsigned long *, unsigned long            , LPSAFEARRAY * ); 
unsigned char * __RPC_USER  LPSAFEARRAY_UserMarshal64(  unsigned long *, unsigned char *, LPSAFEARRAY * ); 
unsigned char * __RPC_USER  LPSAFEARRAY_UserUnmarshal64(unsigned long *, unsigned char *, LPSAFEARRAY * ); 
void                      __RPC_USER  LPSAFEARRAY_UserFree64(     unsigned long *, LPSAFEARRAY * ); 

unsigned long             __RPC_USER  VARIANT_UserSize64(     unsigned long *, unsigned long            , VARIANT * ); 
unsigned char * __RPC_USER  VARIANT_UserMarshal64(  unsigned long *, unsigned char *, VARIANT * ); 
unsigned char * __RPC_USER  VARIANT_UserUnmarshal64(unsigned long *, unsigned char *, VARIANT * ); 
void                      __RPC_USER  VARIANT_UserFree64(     unsigned long *, VARIANT * ); 

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif



