home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / filter.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  10KB  |  366 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:57:11 1997
  6.  */
  7. /* Compiler settings for filter.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 __filter_h__
  32. #define __filter_h__
  33.  
  34. #ifdef __cplusplus
  35. extern "C"{
  36. #endif 
  37.  
  38. /* Forward Declarations */ 
  39.  
  40. #ifndef __IFilter_FWD_DEFINED__
  41. #define __IFilter_FWD_DEFINED__
  42. typedef interface IFilter IFilter;
  43. #endif     /* __IFilter_FWD_DEFINED__ */
  44.  
  45.  
  46. /* header files for imported files */
  47. #include "unknwn.h"
  48. #include "objidl.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_filter_0000
  55.  * at Thu Sep 11 10:57:11 1997
  56.  * using MIDL 3.03.0110
  57.  ****************************************/
  58. /* [local] */ 
  59.  
  60.  
  61. //+-------------------------------------------------------------------------
  62. //
  63. //  Microsoft Windows
  64. //  Copyright (C) Microsoft Corporation, 1993-1997.
  65. //
  66. //--------------------------------------------------------------------------
  67. #if !defined(_TAGFULLPROPSPEC_DEFINED_)
  68. #define _TAGFULLPROPSPEC_DEFINED_
  69. typedef struct  tagFULLPROPSPEC
  70.     {
  71.     GUID guidPropSet;
  72.     PROPSPEC psProperty;
  73.     }    FULLPROPSPEC;
  74.  
  75. #endif // #if !defined(_TAGFULLPROPSPEC_DEFINED_)
  76.  
  77.  
  78. extern RPC_IF_HANDLE __MIDL_itf_filter_0000_v0_0_c_ifspec;
  79. extern RPC_IF_HANDLE __MIDL_itf_filter_0000_v0_0_s_ifspec;
  80.  
  81. #ifndef __IFilter_INTERFACE_DEFINED__
  82. #define __IFilter_INTERFACE_DEFINED__
  83.  
  84. /****************************************
  85.  * Generated header for interface: IFilter
  86.  * at Thu Sep 11 10:57:11 1997
  87.  * using MIDL 3.03.0110
  88.  ****************************************/
  89. /* [unique][uuid][object][local] */ 
  90.  
  91.  
  92. #ifndef _tagIFILTER_INIT_DEFINED
  93. typedef 
  94. enum tagIFILTER_INIT
  95.     {    IFILTER_INIT_CANON_PARAGRAPHS    = 1,
  96.     IFILTER_INIT_HARD_LINE_BREAKS    = 2,
  97.     IFILTER_INIT_CANON_HYPHENS    = 4,
  98.     IFILTER_INIT_CANON_SPACES    = 8,
  99.     IFILTER_INIT_APPLY_INDEX_ATTRIBUTES    = 16,
  100.     IFILTER_INIT_APPLY_OTHER_ATTRIBUTES    = 32,
  101.     IFILTER_INIT_INDEXING_ONLY    = 64,
  102.     IFILTER_INIT_SEARCH_LINKS    = 128
  103.     }    IFILTER_INIT;
  104.  
  105. #define _tagIFILTER_INIT_DEFINED
  106. #define _IFILTER_INIT_DEFINED
  107. #endif
  108. #ifndef _tagIFILTER_FLAGS_DEFINED
  109. typedef 
  110. enum tagIFILTER_FLAGS
  111.     {    IFILTER_FLAGS_OLE_PROPERTIES    = 1
  112.     }    IFILTER_FLAGS;
  113.  
  114. #define _tagIFILTER_FLAGS_DEFINED
  115. #define _IFILTER_FLAGS_DEFINED
  116. #endif
  117. #ifndef _tagCHUNKSTATE_DEFINED
  118. typedef 
  119. enum tagCHUNKSTATE
  120.     {    CHUNK_TEXT    = 0x1,
  121.     CHUNK_VALUE    = 0x2
  122.     }    CHUNKSTATE;
  123.  
  124. #define _tagCHUNKSTATE_DEFINED
  125. #define _CHUNKSTATE_DEFINED
  126. #endif
  127. #ifndef _tagCHUNK_BREAKTYPE_DEFINED
  128. typedef 
  129. enum tagCHUNK_BREAKTYPE
  130.     {    CHUNK_NO_BREAK    = 0,
  131.     CHUNK_EOW    = 1,
  132.     CHUNK_EOS    = 2,
  133.     CHUNK_EOP    = 3,
  134.     CHUNK_EOC    = 4
  135.     }    CHUNK_BREAKTYPE;
  136.  
  137. #define _tagCHUNK_BREAKTYPE_DEFINED
  138. #define _CHUNK_BREAKTYPE_DEFINED
  139. #endif
  140. #ifndef _tagFILTERREGION_DEFINED
  141. typedef struct  tagFILTERREGION
  142.     {
  143.     ULONG idChunk;
  144.     ULONG cwcStart;
  145.     ULONG cwcExtent;
  146.     }    FILTERREGION;
  147.  
  148. #define _tagFILTERREGION_DEFINED
  149. #define _FILTERREGION_DEFINED
  150. #endif
  151. #ifndef _tagSTAT_CHUNK_DEFINED
  152. typedef struct  tagSTAT_CHUNK
  153.     {
  154.     ULONG idChunk;
  155.     CHUNK_BREAKTYPE breakType;
  156.     CHUNKSTATE flags;
  157.     LCID locale;
  158.     FULLPROPSPEC attribute;
  159.     ULONG idChunkSource;
  160.     ULONG cwcStartSource;
  161.     ULONG cwcLenSource;
  162.     }    STAT_CHUNK;
  163.  
  164. #define _tagSTAT_CHUNK_DEFINED
  165. #define _STAT_CHUNK_DEFINED
  166. #endif
  167.  
  168. EXTERN_C const IID IID_IFilter;
  169.  
  170. #if defined(__cplusplus) && !defined(CINTERFACE)
  171.     
  172.     MIDL_INTERFACE("89BCB740-6119-101A-BCB7-00DD010655AF")
  173.     IFilter : public IUnknown
  174.     {
  175.     public:
  176.         virtual SCODE STDMETHODCALLTYPE Init( 
  177.             /* [in] */ ULONG grfFlags,
  178.             /* [in] */ ULONG cAttributes,
  179.             /* [size_is][in] */ const FULLPROPSPEC __RPC_FAR *aAttributes,
  180.             /* [out] */ ULONG __RPC_FAR *pFlags) = 0;
  181.         
  182.         virtual SCODE STDMETHODCALLTYPE GetChunk( 
  183.             /* [out] */ STAT_CHUNK __RPC_FAR *pStat) = 0;
  184.         
  185.         virtual SCODE STDMETHODCALLTYPE GetText( 
  186.             /* [out][in] */ ULONG __RPC_FAR *pcwcBuffer,
  187.             /* [size_is][out] */ WCHAR __RPC_FAR *awcBuffer) = 0;
  188.         
  189.         virtual SCODE STDMETHODCALLTYPE GetValue( 
  190.             /* [out] */ PROPVARIANT __RPC_FAR *__RPC_FAR *ppPropValue) = 0;
  191.         
  192.         virtual SCODE STDMETHODCALLTYPE BindRegion( 
  193.             /* [in] */ FILTERREGION origPos,
  194.             /* [in] */ REFIID riid,
  195.             /* [out] */ void __RPC_FAR *__RPC_FAR *ppunk) = 0;
  196.         
  197.     };
  198.     
  199. #else     /* C style interface */
  200.  
  201.     typedef struct IFilterVtbl
  202.     {
  203.         BEGIN_INTERFACE
  204.         
  205.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  206.             IFilter __RPC_FAR * This,
  207.             /* [in] */ REFIID riid,
  208.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  209.         
  210.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  211.             IFilter __RPC_FAR * This);
  212.         
  213.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  214.             IFilter __RPC_FAR * This);
  215.         
  216.         SCODE ( STDMETHODCALLTYPE __RPC_FAR *Init )( 
  217.             IFilter __RPC_FAR * This,
  218.             /* [in] */ ULONG grfFlags,
  219.             /* [in] */ ULONG cAttributes,
  220.             /* [size_is][in] */ const FULLPROPSPEC __RPC_FAR *aAttributes,
  221.             /* [out] */ ULONG __RPC_FAR *pFlags);
  222.         
  223.         SCODE ( STDMETHODCALLTYPE __RPC_FAR *GetChunk )( 
  224.             IFilter __RPC_FAR * This,
  225.             /* [out] */ STAT_CHUNK __RPC_FAR *pStat);
  226.         
  227.         SCODE ( STDMETHODCALLTYPE __RPC_FAR *GetText )( 
  228.             IFilter __RPC_FAR * This,
  229.             /* [out][in] */ ULONG __RPC_FAR *pcwcBuffer,
  230.             /* [size_is][out] */ WCHAR __RPC_FAR *awcBuffer);
  231.         
  232.         SCODE ( STDMETHODCALLTYPE __RPC_FAR *GetValue )( 
  233.             IFilter __RPC_FAR * This,
  234.             /* [out] */ PROPVARIANT __RPC_FAR *__RPC_FAR *ppPropValue);
  235.         
  236.         SCODE ( STDMETHODCALLTYPE __RPC_FAR *BindRegion )( 
  237.             IFilter __RPC_FAR * This,
  238.             /* [in] */ FILTERREGION origPos,
  239.             /* [in] */ REFIID riid,
  240.             /* [out] */ void __RPC_FAR *__RPC_FAR *ppunk);
  241.         
  242.         END_INTERFACE
  243.     } IFilterVtbl;
  244.  
  245.     interface IFilter
  246.     {
  247.         CONST_VTBL struct IFilterVtbl __RPC_FAR *lpVtbl;
  248.     };
  249.  
  250.     
  251.  
  252. #ifdef COBJMACROS
  253.  
  254.  
  255. #define IFilter_QueryInterface(This,riid,ppvObject)    \
  256.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  257.  
  258. #define IFilter_AddRef(This)    \
  259.     (This)->lpVtbl -> AddRef(This)
  260.  
  261. #define IFilter_Release(This)    \
  262.     (This)->lpVtbl -> Release(This)
  263.  
  264.  
  265. #define IFilter_Init(This,grfFlags,cAttributes,aAttributes,pFlags)    \
  266.     (This)->lpVtbl -> Init(This,grfFlags,cAttributes,aAttributes,pFlags)
  267.  
  268. #define IFilter_GetChunk(This,pStat)    \
  269.     (This)->lpVtbl -> GetChunk(This,pStat)
  270.  
  271. #define IFilter_GetText(This,pcwcBuffer,awcBuffer)    \
  272.     (This)->lpVtbl -> GetText(This,pcwcBuffer,awcBuffer)
  273.  
  274. #define IFilter_GetValue(This,ppPropValue)    \
  275.     (This)->lpVtbl -> GetValue(This,ppPropValue)
  276.  
  277. #define IFilter_BindRegion(This,origPos,riid,ppunk)    \
  278.     (This)->lpVtbl -> BindRegion(This,origPos,riid,ppunk)
  279.  
  280. #endif /* COBJMACROS */
  281.  
  282.  
  283. #endif     /* C style interface */
  284.  
  285.  
  286.  
  287. SCODE STDMETHODCALLTYPE IFilter_Init_Proxy( 
  288.     IFilter __RPC_FAR * This,
  289.     /* [in] */ ULONG grfFlags,
  290.     /* [in] */ ULONG cAttributes,
  291.     /* [size_is][in] */ const FULLPROPSPEC __RPC_FAR *aAttributes,
  292.     /* [out] */ ULONG __RPC_FAR *pFlags);
  293.  
  294.  
  295. void __RPC_STUB IFilter_Init_Stub(
  296.     IRpcStubBuffer *This,
  297.     IRpcChannelBuffer *_pRpcChannelBuffer,
  298.     PRPC_MESSAGE _pRpcMessage,
  299.     DWORD *_pdwStubPhase);
  300.  
  301.  
  302. SCODE STDMETHODCALLTYPE IFilter_GetChunk_Proxy( 
  303.     IFilter __RPC_FAR * This,
  304.     /* [out] */ STAT_CHUNK __RPC_FAR *pStat);
  305.  
  306.  
  307. void __RPC_STUB IFilter_GetChunk_Stub(
  308.     IRpcStubBuffer *This,
  309.     IRpcChannelBuffer *_pRpcChannelBuffer,
  310.     PRPC_MESSAGE _pRpcMessage,
  311.     DWORD *_pdwStubPhase);
  312.  
  313.  
  314. SCODE STDMETHODCALLTYPE IFilter_GetText_Proxy( 
  315.     IFilter __RPC_FAR * This,
  316.     /* [out][in] */ ULONG __RPC_FAR *pcwcBuffer,
  317.     /* [size_is][out] */ WCHAR __RPC_FAR *awcBuffer);
  318.  
  319.  
  320. void __RPC_STUB IFilter_GetText_Stub(
  321.     IRpcStubBuffer *This,
  322.     IRpcChannelBuffer *_pRpcChannelBuffer,
  323.     PRPC_MESSAGE _pRpcMessage,
  324.     DWORD *_pdwStubPhase);
  325.  
  326.  
  327. SCODE STDMETHODCALLTYPE IFilter_GetValue_Proxy( 
  328.     IFilter __RPC_FAR * This,
  329.     /* [out] */ PROPVARIANT __RPC_FAR *__RPC_FAR *ppPropValue);
  330.  
  331.  
  332. void __RPC_STUB IFilter_GetValue_Stub(
  333.     IRpcStubBuffer *This,
  334.     IRpcChannelBuffer *_pRpcChannelBuffer,
  335.     PRPC_MESSAGE _pRpcMessage,
  336.     DWORD *_pdwStubPhase);
  337.  
  338.  
  339. SCODE STDMETHODCALLTYPE IFilter_BindRegion_Proxy( 
  340.     IFilter __RPC_FAR * This,
  341.     /* [in] */ FILTERREGION origPos,
  342.     /* [in] */ REFIID riid,
  343.     /* [out] */ void __RPC_FAR *__RPC_FAR *ppunk);
  344.  
  345.  
  346. void __RPC_STUB IFilter_BindRegion_Stub(
  347.     IRpcStubBuffer *This,
  348.     IRpcChannelBuffer *_pRpcChannelBuffer,
  349.     PRPC_MESSAGE _pRpcMessage,
  350.     DWORD *_pdwStubPhase);
  351.  
  352.  
  353.  
  354. #endif     /* __IFilter_INTERFACE_DEFINED__ */
  355.  
  356.  
  357. /* Additional Prototypes for ALL interfaces */
  358.  
  359. /* end of Additional Prototypes */
  360.  
  361. #ifdef __cplusplus
  362. }
  363. #endif
  364.  
  365. #endif
  366.