perhist.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. #include "rpc.h"
  10. #include "rpcndr.h"
  11. #ifndef __RPCNDR_H_VERSION__
  12. #error This stub requires an updated version of <rpcndr.h>
  13. #endif
  14. #ifndef COM_NO_WINDOWS_H
  15. #include "windows.h"
  16. #include "ole2.h"
  17. #endif
  18. #ifndef __perhist_h__
  19. #define __perhist_h__
  20. #ifndef __IPersistHistory_FWD_DEFINED__
  21. #define __IPersistHistory_FWD_DEFINED__
  22. typedef struct IPersistHistory IPersistHistory;
  23. #endif
  24. #include "objidl.h"
  25. #include "oleidl.h"
  26. #ifdef __cplusplus
  27. extern "C"{
  28. #endif
  29. #ifndef __MIDL_user_allocate_free_DEFINED__
  30. #define __MIDL_user_allocate_free_DEFINED__
  31. void *__RPC_API MIDL_user_allocate(size_t);
  32. void __RPC_API MIDL_user_free(void *);
  33. #endif
  34. #ifndef _LPPERSISTHISTORY_DEFINED
  35. #define _LPPERSISTHISTORY_DEFINED
  36. extern RPC_IF_HANDLE __MIDL_itf_perhist_0000_v0_0_c_ifspec;
  37. extern RPC_IF_HANDLE __MIDL_itf_perhist_0000_v0_0_s_ifspec;
  38. #ifndef __IPersistHistory_INTERFACE_DEFINED__
  39. #define __IPersistHistory_INTERFACE_DEFINED__
  40. typedef IPersistHistory *LPPERSISTHISTORY;
  41. EXTERN_C const IID IID_IPersistHistory;
  42. #if defined(__cplusplus) && !defined(CINTERFACE)
  43. struct IPersistHistory : public IPersist {
  44. public:
  45. virtual HRESULT WINAPI LoadHistory(IStream *pStream,IBindCtx *pbc) = 0;
  46. virtual HRESULT WINAPI SaveHistory(IStream *pStream) = 0;
  47. virtual HRESULT WINAPI SetPositionCookie(DWORD dwPositioncookie) = 0;
  48. virtual HRESULT WINAPI GetPositionCookie(DWORD *pdwPositioncookie) = 0;
  49. };
  50. #else
  51. typedef struct IPersistHistoryVtbl {
  52. BEGIN_INTERFACE
  53. HRESULT (WINAPI *QueryInterface)(IPersistHistory *This,REFIID riid,void **ppvObject);
  54. ULONG (WINAPI *AddRef)(IPersistHistory *This);
  55. ULONG (WINAPI *Release)(IPersistHistory *This);
  56. HRESULT (WINAPI *GetClassID)(IPersistHistory *This,CLSID *pClassID);
  57. HRESULT (WINAPI *LoadHistory)(IPersistHistory *This,IStream *pStream,IBindCtx *pbc);
  58. HRESULT (WINAPI *SaveHistory)(IPersistHistory *This,IStream *pStream);
  59. HRESULT (WINAPI *SetPositionCookie)(IPersistHistory *This,DWORD dwPositioncookie);
  60. HRESULT (WINAPI *GetPositionCookie)(IPersistHistory *This,DWORD *pdwPositioncookie);
  61. END_INTERFACE
  62. } IPersistHistoryVtbl;
  63. struct IPersistHistory {
  64. CONST_VTBL struct IPersistHistoryVtbl *lpVtbl;
  65. };
  66. #ifdef COBJMACROS
  67. #define IPersistHistory_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  68. #define IPersistHistory_AddRef(This) (This)->lpVtbl->AddRef(This)
  69. #define IPersistHistory_Release(This) (This)->lpVtbl->Release(This)
  70. #define IPersistHistory_GetClassID(This,pClassID) (This)->lpVtbl->GetClassID(This,pClassID)
  71. #define IPersistHistory_LoadHistory(This,pStream,pbc) (This)->lpVtbl->LoadHistory(This,pStream,pbc)
  72. #define IPersistHistory_SaveHistory(This,pStream) (This)->lpVtbl->SaveHistory(This,pStream)
  73. #define IPersistHistory_SetPositionCookie(This,dwPositioncookie) (This)->lpVtbl->SetPositionCookie(This,dwPositioncookie)
  74. #define IPersistHistory_GetPositionCookie(This,pdwPositioncookie) (This)->lpVtbl->GetPositionCookie(This,pdwPositioncookie)
  75. #endif
  76. #endif
  77. HRESULT WINAPI IPersistHistory_LoadHistory_Proxy(IPersistHistory *This,IStream *pStream,IBindCtx *pbc);
  78. void __RPC_STUB IPersistHistory_LoadHistory_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  79. HRESULT WINAPI IPersistHistory_SaveHistory_Proxy(IPersistHistory *This,IStream *pStream);
  80. void __RPC_STUB IPersistHistory_SaveHistory_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  81. HRESULT WINAPI IPersistHistory_SetPositionCookie_Proxy(IPersistHistory *This,DWORD dwPositioncookie);
  82. void __RPC_STUB IPersistHistory_SetPositionCookie_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  83. HRESULT WINAPI IPersistHistory_GetPositionCookie_Proxy(IPersistHistory *This,DWORD *pdwPositioncookie);
  84. void __RPC_STUB IPersistHistory_GetPositionCookie_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  85. #endif
  86. #endif
  87. extern RPC_IF_HANDLE __MIDL_itf_perhist_0118_v0_0_c_ifspec;
  88. extern RPC_IF_HANDLE __MIDL_itf_perhist_0118_v0_0_s_ifspec;
  89. #ifdef __cplusplus
  90. }
  91. #endif
  92. #endif