1/** 2 * This file has no copyright assigned and is placed in the Public Domain. 3 * This file is part of the mingw-w64 runtime package. 4 * No warranty is given; refer to the file DISCLAIMER.PD within this package. 5 */ 6#ifndef __REQUIRED_RPCNDR_H_VERSION__ 7#define __REQUIRED_RPCNDR_H_VERSION__ 440 8#endif 9 10#include "rpc.h" 11#include "rpcndr.h" 12 13#ifndef __RPCNDR_H_VERSION__ 14#error This stub requires an updated version of <rpcndr.h> 15#endif 16 17#ifndef COM_NO_WINDOWS_H 18#include "windows.h" 19#include "ole2.h" 20#endif 21 22#ifndef __perhist_h__ 23#define __perhist_h__ 24 25#ifndef __IPersistHistory_FWD_DEFINED__ 26#define __IPersistHistory_FWD_DEFINED__ 27typedef struct IPersistHistory IPersistHistory; 28#endif 29 30#include "objidl.h" 31#include "oleidl.h" 32 33#ifdef __cplusplus 34extern "C"{ 35#endif 36 37#ifndef __MIDL_user_allocate_free_DEFINED__ 38#define __MIDL_user_allocate_free_DEFINED__ 39 void *__RPC_API MIDL_user_allocate(size_t); 40 void __RPC_API MIDL_user_free(void *); 41#endif 42 43#ifndef _LPPERSISTHISTORY_DEFINED 44#define _LPPERSISTHISTORY_DEFINED 45 46 extern RPC_IF_HANDLE __MIDL_itf_perhist_0000_v0_0_c_ifspec; 47 extern RPC_IF_HANDLE __MIDL_itf_perhist_0000_v0_0_s_ifspec; 48 49#ifndef __IPersistHistory_INTERFACE_DEFINED__ 50#define __IPersistHistory_INTERFACE_DEFINED__ 51 typedef IPersistHistory *LPPERSISTHISTORY; 52 53 EXTERN_C const IID IID_IPersistHistory; 54#if defined(__cplusplus) && !defined(CINTERFACE) 55 struct IPersistHistory : public IPersist { 56 public: 57 virtual HRESULT WINAPI LoadHistory(IStream *pStream,IBindCtx *pbc) = 0; 58 virtual HRESULT WINAPI SaveHistory(IStream *pStream) = 0; 59 virtual HRESULT WINAPI SetPositionCookie(DWORD dwPositioncookie) = 0; 60 virtual HRESULT WINAPI GetPositionCookie(DWORD *pdwPositioncookie) = 0; 61 }; 62#else 63 typedef struct IPersistHistoryVtbl { 64 BEGIN_INTERFACE 65 HRESULT (WINAPI *QueryInterface)(IPersistHistory *This,REFIID riid,void **ppvObject); 66 ULONG (WINAPI *AddRef)(IPersistHistory *This); 67 ULONG (WINAPI *Release)(IPersistHistory *This); 68 HRESULT (WINAPI *GetClassID)(IPersistHistory *This,CLSID *pClassID); 69 HRESULT (WINAPI *LoadHistory)(IPersistHistory *This,IStream *pStream,IBindCtx *pbc); 70 HRESULT (WINAPI *SaveHistory)(IPersistHistory *This,IStream *pStream); 71 HRESULT (WINAPI *SetPositionCookie)(IPersistHistory *This,DWORD dwPositioncookie); 72 HRESULT (WINAPI *GetPositionCookie)(IPersistHistory *This,DWORD *pdwPositioncookie); 73 END_INTERFACE 74 } IPersistHistoryVtbl; 75 struct IPersistHistory { 76 CONST_VTBL struct IPersistHistoryVtbl *lpVtbl; 77 }; 78#ifdef COBJMACROS 79#define IPersistHistory_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 80#define IPersistHistory_AddRef(This) (This)->lpVtbl->AddRef(This) 81#define IPersistHistory_Release(This) (This)->lpVtbl->Release(This) 82#define IPersistHistory_GetClassID(This,pClassID) (This)->lpVtbl->GetClassID(This,pClassID) 83#define IPersistHistory_LoadHistory(This,pStream,pbc) (This)->lpVtbl->LoadHistory(This,pStream,pbc) 84#define IPersistHistory_SaveHistory(This,pStream) (This)->lpVtbl->SaveHistory(This,pStream) 85#define IPersistHistory_SetPositionCookie(This,dwPositioncookie) (This)->lpVtbl->SetPositionCookie(This,dwPositioncookie) 86#define IPersistHistory_GetPositionCookie(This,pdwPositioncookie) (This)->lpVtbl->GetPositionCookie(This,pdwPositioncookie) 87#endif 88#endif 89 HRESULT WINAPI IPersistHistory_LoadHistory_Proxy(IPersistHistory *This,IStream *pStream,IBindCtx *pbc); 90 void __RPC_STUB IPersistHistory_LoadHistory_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase); 91 HRESULT WINAPI IPersistHistory_SaveHistory_Proxy(IPersistHistory *This,IStream *pStream); 92 void __RPC_STUB IPersistHistory_SaveHistory_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase); 93 HRESULT WINAPI IPersistHistory_SetPositionCookie_Proxy(IPersistHistory *This,DWORD dwPositioncookie); 94 void __RPC_STUB IPersistHistory_SetPositionCookie_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase); 95 HRESULT WINAPI IPersistHistory_GetPositionCookie_Proxy(IPersistHistory *This,DWORD *pdwPositioncookie); 96 void __RPC_STUB IPersistHistory_GetPositionCookie_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase); 97#endif 98#endif 99 100 extern RPC_IF_HANDLE __MIDL_itf_perhist_0118_v0_0_c_ifspec; 101 extern RPC_IF_HANDLE __MIDL_itf_perhist_0118_v0_0_s_ifspec; 102 103#ifdef __cplusplus 104} 105#endif 106#endif 107