home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / perhist.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  7.9 KB  |  277 lines

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