home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / perhist.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  8KB  |  282 lines

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2.  
  3.  
  4. /* File created by MIDL compiler version 3.03.0110 */
  5. /* at Thu Sep 11 10:59:42 1997
  6.  */
  7. /* Compiler settings for perhist.idl:
  8.     Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
  9.     error checks: none
  10. */
  11. //@@MIDL_FILE_HEADING(  )
  12.  
  13.  
  14. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  15. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  16. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  17. #endif
  18.  
  19. #include "rpc.h"
  20. #include "rpcndr.h"
  21.  
  22. #ifndef __RPCNDR_H_VERSION__
  23. #error this stub requires an updated version of <rpcndr.h>
  24. #endif // __RPCNDR_H_VERSION__
  25.  
  26. #ifndef COM_NO_WINDOWS_H
  27. #include "windows.h"
  28. #include "ole2.h"
  29. #endif /*COM_NO_WINDOWS_H*/
  30.  
  31. #ifndef __perhist_h__
  32. #define __perhist_h__
  33.  
  34. #ifdef __cplusplus
  35. extern "C"{
  36. #endif 
  37.  
  38. /* Forward Declarations */ 
  39.  
  40. #ifndef __IPersistHistory_FWD_DEFINED__
  41. #define __IPersistHistory_FWD_DEFINED__
  42. typedef interface IPersistHistory IPersistHistory;
  43. #endif     /* __IPersistHistory_FWD_DEFINED__ */
  44.  
  45.  
  46. /* header files for imported files */
  47. #include "objidl.h"
  48. #include "oleidl.h"
  49.  
  50. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  51. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  52.  
  53. /****************************************
  54.  * Generated header for interface: __MIDL_itf_perhist_0000
  55.  * at Thu Sep 11 10:59:42 1997
  56.  * using MIDL 3.03.0110
  57.  ****************************************/
  58. /* [local] */ 
  59.  
  60.  
  61. //=--------------------------------------------------------------------------=
  62. // perhist.h
  63. //=--------------------------------------------------------------------------=
  64. // (C) Copyright 1995 - 1998 Microsoft Corporation.  All Rights Reserved.
  65. //
  66. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  67. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  68. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  69. // PARTICULAR PURPOSE.
  70. //=--------------------------------------------------------------------------=
  71.  
  72. #pragma comment(lib,"uuid.lib")
  73.  
  74. //---------------------------------------------------------------------------=
  75. // IPersistHistory Interface.
  76.  
  77.  
  78. #ifndef _LPPERSISTHISTORY_DEFINED
  79. #define _LPPERSISTHISTORY_DEFINED
  80.  
  81.  
  82. extern RPC_IF_HANDLE __MIDL_itf_perhist_0000_v0_0_c_ifspec;
  83. extern RPC_IF_HANDLE __MIDL_itf_perhist_0000_v0_0_s_ifspec;
  84.  
  85. #ifndef __IPersistHistory_INTERFACE_DEFINED__
  86. #define __IPersistHistory_INTERFACE_DEFINED__
  87.  
  88. /****************************************
  89.  * Generated header for interface: IPersistHistory
  90.  * at Thu Sep 11 10:59:42 1997
  91.  * using MIDL 3.03.0110
  92.  ****************************************/
  93. /* [unique][uuid][object] */ 
  94.  
  95.  
  96. typedef /* [unique] */ IPersistHistory __RPC_FAR *LPPERSISTHISTORY;
  97.  
  98.  
  99. EXTERN_C const IID IID_IPersistHistory;
  100.  
  101. #if defined(__cplusplus) && !defined(CINTERFACE)
  102.     
  103.     MIDL_INTERFACE("91A565C1-E38F-11d0-94BF-00A0C9055CBF")
  104.     IPersistHistory : public IPersist
  105.     {
  106.     public:
  107.         virtual HRESULT STDMETHODCALLTYPE LoadHistory( 
  108.             /* [in] */ IStream __RPC_FAR *pStream,
  109.             /* [in] */ IBindCtx __RPC_FAR *pbc) = 0;
  110.         
  111.         virtual HRESULT STDMETHODCALLTYPE SaveHistory( 
  112.             /* [in] */ IStream __RPC_FAR *pStream) = 0;
  113.         
  114.         virtual HRESULT STDMETHODCALLTYPE SetPositionCookie( 
  115.             /* [in] */ DWORD dwPositioncookie) = 0;
  116.         
  117.         virtual HRESULT STDMETHODCALLTYPE GetPositionCookie( 
  118.             /* [out] */ DWORD __RPC_FAR *pdwPositioncookie) = 0;
  119.         
  120.     };
  121.     
  122. #else     /* C style interface */
  123.  
  124.     typedef struct IPersistHistoryVtbl
  125.     {
  126.         BEGIN_INTERFACE
  127.         
  128.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  129.             IPersistHistory __RPC_FAR * This,
  130.             /* [in] */ REFIID riid,
  131.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  132.         
  133.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  134.             IPersistHistory __RPC_FAR * This);
  135.         
  136.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  137.             IPersistHistory __RPC_FAR * This);
  138.         
  139.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetClassID )( 
  140.             IPersistHistory __RPC_FAR * This,
  141.             /* [out] */ CLSID __RPC_FAR *pClassID);
  142.         
  143.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *LoadHistory )( 
  144.             IPersistHistory __RPC_FAR * This,
  145.             /* [in] */ IStream __RPC_FAR *pStream,
  146.             /* [in] */ IBindCtx __RPC_FAR *pbc);
  147.         
  148.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *SaveHistory )( 
  149.             IPersistHistory __RPC_FAR * This,
  150.             /* [in] */ IStream __RPC_FAR *pStream);
  151.         
  152.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *SetPositionCookie )( 
  153.             IPersistHistory __RPC_FAR * This,
  154.             /* [in] */ DWORD dwPositioncookie);
  155.         
  156.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetPositionCookie )( 
  157.             IPersistHistory __RPC_FAR * This,
  158.             /* [out] */ DWORD __RPC_FAR *pdwPositioncookie);
  159.         
  160.         END_INTERFACE
  161.     } IPersistHistoryVtbl;
  162.  
  163.     interface IPersistHistory
  164.     {
  165.         CONST_VTBL struct IPersistHistoryVtbl __RPC_FAR *lpVtbl;
  166.     };
  167.  
  168.     
  169.  
  170. #ifdef COBJMACROS
  171.  
  172.  
  173. #define IPersistHistory_QueryInterface(This,riid,ppvObject)    \
  174.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  175.  
  176. #define IPersistHistory_AddRef(This)    \
  177.     (This)->lpVtbl -> AddRef(This)
  178.  
  179. #define IPersistHistory_Release(This)    \
  180.     (This)->lpVtbl -> Release(This)
  181.  
  182.  
  183. #define IPersistHistory_GetClassID(This,pClassID)    \
  184.     (This)->lpVtbl -> GetClassID(This,pClassID)
  185.  
  186.  
  187. #define IPersistHistory_LoadHistory(This,pStream,pbc)    \
  188.     (This)->lpVtbl -> LoadHistory(This,pStream,pbc)
  189.  
  190. #define IPersistHistory_SaveHistory(This,pStream)    \
  191.     (This)->lpVtbl -> SaveHistory(This,pStream)
  192.  
  193. #define IPersistHistory_SetPositionCookie(This,dwPositioncookie)    \
  194.     (This)->lpVtbl -> SetPositionCookie(This,dwPositioncookie)
  195.  
  196. #define IPersistHistory_GetPositionCookie(This,pdwPositioncookie)    \
  197.     (This)->lpVtbl -> GetPositionCookie(This,pdwPositioncookie)
  198.  
  199. #endif /* COBJMACROS */
  200.  
  201.  
  202. #endif     /* C style interface */
  203.  
  204.  
  205.  
  206. HRESULT STDMETHODCALLTYPE IPersistHistory_LoadHistory_Proxy( 
  207.     IPersistHistory __RPC_FAR * This,
  208.     /* [in] */ IStream __RPC_FAR *pStream,
  209.     /* [in] */ IBindCtx __RPC_FAR *pbc);
  210.  
  211.  
  212. void __RPC_STUB IPersistHistory_LoadHistory_Stub(
  213.     IRpcStubBuffer *This,
  214.     IRpcChannelBuffer *_pRpcChannelBuffer,
  215.     PRPC_MESSAGE _pRpcMessage,
  216.     DWORD *_pdwStubPhase);
  217.  
  218.  
  219. HRESULT STDMETHODCALLTYPE IPersistHistory_SaveHistory_Proxy( 
  220.     IPersistHistory __RPC_FAR * This,
  221.     /* [in] */ IStream __RPC_FAR *pStream);
  222.  
  223.  
  224. void __RPC_STUB IPersistHistory_SaveHistory_Stub(
  225.     IRpcStubBuffer *This,
  226.     IRpcChannelBuffer *_pRpcChannelBuffer,
  227.     PRPC_MESSAGE _pRpcMessage,
  228.     DWORD *_pdwStubPhase);
  229.  
  230.  
  231. HRESULT STDMETHODCALLTYPE IPersistHistory_SetPositionCookie_Proxy( 
  232.     IPersistHistory __RPC_FAR * This,
  233.     /* [in] */ DWORD dwPositioncookie);
  234.  
  235.  
  236. void __RPC_STUB IPersistHistory_SetPositionCookie_Stub(
  237.     IRpcStubBuffer *This,
  238.     IRpcChannelBuffer *_pRpcChannelBuffer,
  239.     PRPC_MESSAGE _pRpcMessage,
  240.     DWORD *_pdwStubPhase);
  241.  
  242.  
  243. HRESULT STDMETHODCALLTYPE IPersistHistory_GetPositionCookie_Proxy( 
  244.     IPersistHistory __RPC_FAR * This,
  245.     /* [out] */ DWORD __RPC_FAR *pdwPositioncookie);
  246.  
  247.  
  248. void __RPC_STUB IPersistHistory_GetPositionCookie_Stub(
  249.     IRpcStubBuffer *This,
  250.     IRpcChannelBuffer *_pRpcChannelBuffer,
  251.     PRPC_MESSAGE _pRpcMessage,
  252.     DWORD *_pdwStubPhase);
  253.  
  254.  
  255.  
  256. #endif     /* __IPersistHistory_INTERFACE_DEFINED__ */
  257.  
  258.  
  259. /****************************************
  260.  * Generated header for interface: __MIDL_itf_perhist_0099
  261.  * at Thu Sep 11 10:59:42 1997
  262.  * using MIDL 3.03.0110
  263.  ****************************************/
  264. /* [local] */ 
  265.  
  266.  
  267. #endif
  268.  
  269.  
  270. extern RPC_IF_HANDLE __MIDL_itf_perhist_0099_v0_0_c_ifspec;
  271. extern RPC_IF_HANDLE __MIDL_itf_perhist_0099_v0_0_s_ifspec;
  272.  
  273. /* Additional Prototypes for ALL interfaces */
  274.  
  275. /* end of Additional Prototypes */
  276.  
  277. #ifdef __cplusplus
  278. }
  279. #endif
  280.  
  281. #endif
  282.