home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c12 / simpledual / simpledual.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  14.8 KB  |  489 lines

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2.  
  3.  
  4. /* File created by MIDL compiler version 3.01.75 */
  5. /* at Mon Jan 27 10:10:08 1997
  6.  */
  7. /* Compiler settings for C:\samples\c12\SimpleDual\Simple.odl:
  8.     Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext
  9.     error checks: none
  10. */
  11. //@@MIDL_FILE_HEADING(  )
  12. #include "rpc.h"
  13. #include "rpcndr.h"
  14.  
  15. #ifndef __SimpleDual_h__
  16. #define __SimpleDual_h__
  17.  
  18. #ifdef __cplusplus
  19. extern "C"{
  20. #endif 
  21.  
  22. /* Forward Declarations */ 
  23.  
  24. #ifndef ___DSimple_FWD_DEFINED__
  25. #define ___DSimple_FWD_DEFINED__
  26. typedef interface _DSimple _DSimple;
  27. #endif     /* ___DSimple_FWD_DEFINED__ */
  28.  
  29.  
  30. #ifndef ___DSimpleEvents_FWD_DEFINED__
  31. #define ___DSimpleEvents_FWD_DEFINED__
  32. typedef interface _DSimpleEvents _DSimpleEvents;
  33. #endif     /* ___DSimpleEvents_FWD_DEFINED__ */
  34.  
  35.  
  36. #ifndef ___DSimpleDual_FWD_DEFINED__
  37. #define ___DSimpleDual_FWD_DEFINED__
  38. typedef interface _DSimpleDual _DSimpleDual;
  39. #endif     /* ___DSimpleDual_FWD_DEFINED__ */
  40.  
  41.  
  42. #ifndef __Simple_FWD_DEFINED__
  43. #define __Simple_FWD_DEFINED__
  44.  
  45. #ifdef __cplusplus
  46. typedef class Simple Simple;
  47. #else
  48. typedef struct Simple Simple;
  49. #endif /* __cplusplus */
  50.  
  51. #endif     /* __Simple_FWD_DEFINED__ */
  52.  
  53.  
  54. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  55. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  56.  
  57.  
  58. #ifndef __SIMPLELib_LIBRARY_DEFINED__
  59. #define __SIMPLELib_LIBRARY_DEFINED__
  60.  
  61. /****************************************
  62.  * Generated header for library: SIMPLELib
  63.  * at Mon Jan 27 10:10:08 1997
  64.  * using MIDL 3.01.75
  65.  ****************************************/
  66. /* [control][helpstring][helpfile][version][uuid] */ 
  67.  
  68.  
  69.  
  70. DEFINE_GUID(LIBID_SIMPLELib,0xC48A81E0,0x4384,0x11D0,0x9C,0x9D,0x00,0x00,0x00,0x00,0x00,0x00);
  71.  
  72. #ifndef ___DSimple_DISPINTERFACE_DEFINED__
  73. #define ___DSimple_DISPINTERFACE_DEFINED__
  74.  
  75. /****************************************
  76.  * Generated header for dispinterface: _DSimple
  77.  * at Mon Jan 27 10:10:08 1997
  78.  * using MIDL 3.01.75
  79.  ****************************************/
  80. /* [hidden][helpstring][uuid] */ 
  81.  
  82.  
  83.  
  84. DEFINE_GUID(DIID__DSimple,0xC48A81E1,0x4384,0x11D0,0x9C,0x9D,0x00,0x00,0x00,0x00,0x00,0x00);
  85.  
  86. #if defined(__cplusplus) && !defined(CINTERFACE)
  87.  
  88.     interface DECLSPEC_UUID("C48A81E1-4384-11D0-9C9D-000000000000")
  89.     _DSimple : public IDispatch
  90.     {
  91.     };
  92.     
  93. #else     /* C style interface */
  94.  
  95.     typedef struct _DSimpleVtbl
  96.     {
  97.         BEGIN_INTERFACE
  98.         
  99.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  100.             _DSimple __RPC_FAR * This,
  101.             /* [in] */ REFIID riid,
  102.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  103.         
  104.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  105.             _DSimple __RPC_FAR * This);
  106.         
  107.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  108.             _DSimple __RPC_FAR * This);
  109.         
  110.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  111.             _DSimple __RPC_FAR * This,
  112.             /* [out] */ UINT __RPC_FAR *pctinfo);
  113.         
  114.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  115.             _DSimple __RPC_FAR * This,
  116.             /* [in] */ UINT iTInfo,
  117.             /* [in] */ LCID lcid,
  118.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  119.         
  120.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  121.             _DSimple __RPC_FAR * This,
  122.             /* [in] */ REFIID riid,
  123.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  124.             /* [in] */ UINT cNames,
  125.             /* [in] */ LCID lcid,
  126.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  127.         
  128.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  129.             _DSimple __RPC_FAR * This,
  130.             /* [in] */ DISPID dispIdMember,
  131.             /* [in] */ REFIID riid,
  132.             /* [in] */ LCID lcid,
  133.             /* [in] */ WORD wFlags,
  134.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  135.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  136.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  137.             /* [out] */ UINT __RPC_FAR *puArgErr);
  138.         
  139.         END_INTERFACE
  140.     } _DSimpleVtbl;
  141.  
  142.     interface _DSimple
  143.     {
  144.         CONST_VTBL struct _DSimpleVtbl __RPC_FAR *lpVtbl;
  145.     };
  146.  
  147.     
  148.  
  149. #ifdef COBJMACROS
  150.  
  151.  
  152. #define _DSimple_QueryInterface(This,riid,ppvObject)    \
  153.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  154.  
  155. #define _DSimple_AddRef(This)    \
  156.     (This)->lpVtbl -> AddRef(This)
  157.  
  158. #define _DSimple_Release(This)    \
  159.     (This)->lpVtbl -> Release(This)
  160.  
  161.  
  162. #define _DSimple_GetTypeInfoCount(This,pctinfo)    \
  163.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  164.  
  165. #define _DSimple_GetTypeInfo(This,iTInfo,lcid,ppTInfo)    \
  166.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  167.  
  168. #define _DSimple_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)    \
  169.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  170.  
  171. #define _DSimple_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)    \
  172.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  173.  
  174. #endif /* COBJMACROS */
  175.  
  176.  
  177. #endif     /* C style interface */
  178.  
  179.  
  180. #endif     /* ___DSimple_DISPINTERFACE_DEFINED__ */
  181.  
  182.  
  183. #ifndef ___DSimpleEvents_DISPINTERFACE_DEFINED__
  184. #define ___DSimpleEvents_DISPINTERFACE_DEFINED__
  185.  
  186. /****************************************
  187.  * Generated header for dispinterface: _DSimpleEvents
  188.  * at Mon Jan 27 10:10:08 1997
  189.  * using MIDL 3.01.75
  190.  ****************************************/
  191. /* [helpstring][uuid] */ 
  192.  
  193.  
  194.  
  195. DEFINE_GUID(DIID__DSimpleEvents,0xC48A81E2,0x4384,0x11D0,0x9C,0x9D,0x00,0x00,0x00,0x00,0x00,0x00);
  196.  
  197. #if defined(__cplusplus) && !defined(CINTERFACE)
  198.  
  199.     interface DECLSPEC_UUID("C48A81E2-4384-11D0-9C9D-000000000000")
  200.     _DSimpleEvents : public IDispatch
  201.     {
  202.     };
  203.     
  204. #else     /* C style interface */
  205.  
  206.     typedef struct _DSimpleEventsVtbl
  207.     {
  208.         BEGIN_INTERFACE
  209.         
  210.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  211.             _DSimpleEvents __RPC_FAR * This,
  212.             /* [in] */ REFIID riid,
  213.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  214.         
  215.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  216.             _DSimpleEvents __RPC_FAR * This);
  217.         
  218.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  219.             _DSimpleEvents __RPC_FAR * This);
  220.         
  221.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  222.             _DSimpleEvents __RPC_FAR * This,
  223.             /* [out] */ UINT __RPC_FAR *pctinfo);
  224.         
  225.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  226.             _DSimpleEvents __RPC_FAR * This,
  227.             /* [in] */ UINT iTInfo,
  228.             /* [in] */ LCID lcid,
  229.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  230.         
  231.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  232.             _DSimpleEvents __RPC_FAR * This,
  233.             /* [in] */ REFIID riid,
  234.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  235.             /* [in] */ UINT cNames,
  236.             /* [in] */ LCID lcid,
  237.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  238.         
  239.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  240.             _DSimpleEvents __RPC_FAR * This,
  241.             /* [in] */ DISPID dispIdMember,
  242.             /* [in] */ REFIID riid,
  243.             /* [in] */ LCID lcid,
  244.             /* [in] */ WORD wFlags,
  245.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  246.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  247.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  248.             /* [out] */ UINT __RPC_FAR *puArgErr);
  249.         
  250.         END_INTERFACE
  251.     } _DSimpleEventsVtbl;
  252.  
  253.     interface _DSimpleEvents
  254.     {
  255.         CONST_VTBL struct _DSimpleEventsVtbl __RPC_FAR *lpVtbl;
  256.     };
  257.  
  258.     
  259.  
  260. #ifdef COBJMACROS
  261.  
  262.  
  263. #define _DSimpleEvents_QueryInterface(This,riid,ppvObject)    \
  264.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  265.  
  266. #define _DSimpleEvents_AddRef(This)    \
  267.     (This)->lpVtbl -> AddRef(This)
  268.  
  269. #define _DSimpleEvents_Release(This)    \
  270.     (This)->lpVtbl -> Release(This)
  271.  
  272.  
  273. #define _DSimpleEvents_GetTypeInfoCount(This,pctinfo)    \
  274.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  275.  
  276. #define _DSimpleEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo)    \
  277.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  278.  
  279. #define _DSimpleEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)    \
  280.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  281.  
  282. #define _DSimpleEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)    \
  283.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  284.  
  285. #endif /* COBJMACROS */
  286.  
  287.  
  288. #endif     /* C style interface */
  289.  
  290.  
  291. #endif     /* ___DSimpleEvents_DISPINTERFACE_DEFINED__ */
  292.  
  293.  
  294. #ifndef ___DSimpleDual_INTERFACE_DEFINED__
  295. #define ___DSimpleDual_INTERFACE_DEFINED__
  296.  
  297. /****************************************
  298.  * Generated header for interface: _DSimpleDual
  299.  * at Mon Jan 27 10:10:08 1997
  300.  * using MIDL 3.01.75
  301.  ****************************************/
  302. /* [object][dual][oleautomation][uuid] */ 
  303.  
  304.  
  305.  
  306. DEFINE_GUID(IID__DSimpleDual,0x26A30A20,0x42D9,0x11d0,0x9C,0x9D,0x00,0x00,0x00,0x00,0x00,0x00);
  307.  
  308. #if defined(__cplusplus) && !defined(CINTERFACE)
  309.     
  310.     interface DECLSPEC_UUID("26A30A20-42D9-11d0-9C9D-000000000000")
  311.     _DSimpleDual : public IDispatch
  312.     {
  313.     public:
  314.         virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_P1( 
  315.             /* [in] */ long newValue) = 0;
  316.         
  317.         virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_P1( 
  318.             /* [retval][out] */ long __RPC_FAR *retval) = 0;
  319.         
  320.         virtual /* [id] */ HRESULT STDMETHODCALLTYPE M1( void) = 0;
  321.         
  322.     };
  323.     
  324. #else     /* C style interface */
  325.  
  326.     typedef struct _DSimpleDualVtbl
  327.     {
  328.         BEGIN_INTERFACE
  329.         
  330.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  331.             _DSimpleDual __RPC_FAR * This,
  332.             /* [in] */ REFIID riid,
  333.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  334.         
  335.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  336.             _DSimpleDual __RPC_FAR * This);
  337.         
  338.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  339.             _DSimpleDual __RPC_FAR * This);
  340.         
  341.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  342.             _DSimpleDual __RPC_FAR * This,
  343.             /* [out] */ UINT __RPC_FAR *pctinfo);
  344.         
  345.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  346.             _DSimpleDual __RPC_FAR * This,
  347.             /* [in] */ UINT iTInfo,
  348.             /* [in] */ LCID lcid,
  349.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  350.         
  351.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  352.             _DSimpleDual __RPC_FAR * This,
  353.             /* [in] */ REFIID riid,
  354.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  355.             /* [in] */ UINT cNames,
  356.             /* [in] */ LCID lcid,
  357.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  358.         
  359.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  360.             _DSimpleDual __RPC_FAR * This,
  361.             /* [in] */ DISPID dispIdMember,
  362.             /* [in] */ REFIID riid,
  363.             /* [in] */ LCID lcid,
  364.             /* [in] */ WORD wFlags,
  365.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  366.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  367.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  368.             /* [out] */ UINT __RPC_FAR *puArgErr);
  369.         
  370.         /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *put_P1 )( 
  371.             _DSimpleDual __RPC_FAR * This,
  372.             /* [in] */ long newValue);
  373.         
  374.         /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_P1 )( 
  375.             _DSimpleDual __RPC_FAR * This,
  376.             /* [retval][out] */ long __RPC_FAR *retval);
  377.         
  378.         /* [id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *M1 )( 
  379.             _DSimpleDual __RPC_FAR * This);
  380.         
  381.         END_INTERFACE
  382.     } _DSimpleDualVtbl;
  383.  
  384.     interface _DSimpleDual
  385.     {
  386.         CONST_VTBL struct _DSimpleDualVtbl __RPC_FAR *lpVtbl;
  387.     };
  388.  
  389.     
  390.  
  391. #ifdef COBJMACROS
  392.  
  393.  
  394. #define _DSimpleDual_QueryInterface(This,riid,ppvObject)    \
  395.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  396.  
  397. #define _DSimpleDual_AddRef(This)    \
  398.     (This)->lpVtbl -> AddRef(This)
  399.  
  400. #define _DSimpleDual_Release(This)    \
  401.     (This)->lpVtbl -> Release(This)
  402.  
  403.  
  404. #define _DSimpleDual_GetTypeInfoCount(This,pctinfo)    \
  405.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  406.  
  407. #define _DSimpleDual_GetTypeInfo(This,iTInfo,lcid,ppTInfo)    \
  408.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  409.  
  410. #define _DSimpleDual_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)    \
  411.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  412.  
  413. #define _DSimpleDual_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)    \
  414.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  415.  
  416.  
  417. #define _DSimpleDual_put_P1(This,newValue)    \
  418.     (This)->lpVtbl -> put_P1(This,newValue)
  419.  
  420. #define _DSimpleDual_get_P1(This,retval)    \
  421.     (This)->lpVtbl -> get_P1(This,retval)
  422.  
  423. #define _DSimpleDual_M1(This)    \
  424.     (This)->lpVtbl -> M1(This)
  425.  
  426. #endif /* COBJMACROS */
  427.  
  428.  
  429. #endif     /* C style interface */
  430.  
  431.  
  432.  
  433. /* [id][propput] */ HRESULT STDMETHODCALLTYPE _DSimpleDual_put_P1_Proxy( 
  434.     _DSimpleDual __RPC_FAR * This,
  435.     /* [in] */ long newValue);
  436.  
  437.  
  438. void __RPC_STUB _DSimpleDual_put_P1_Stub(
  439.     IRpcStubBuffer *This,
  440.     IRpcChannelBuffer *_pRpcChannelBuffer,
  441.     PRPC_MESSAGE _pRpcMessage,
  442.     DWORD *_pdwStubPhase);
  443.  
  444.  
  445. /* [id][propget] */ HRESULT STDMETHODCALLTYPE _DSimpleDual_get_P1_Proxy( 
  446.     _DSimpleDual __RPC_FAR * This,
  447.     /* [retval][out] */ long __RPC_FAR *retval);
  448.  
  449.  
  450. void __RPC_STUB _DSimpleDual_get_P1_Stub(
  451.     IRpcStubBuffer *This,
  452.     IRpcChannelBuffer *_pRpcChannelBuffer,
  453.     PRPC_MESSAGE _pRpcMessage,
  454.     DWORD *_pdwStubPhase);
  455.  
  456.  
  457. /* [id] */ HRESULT STDMETHODCALLTYPE _DSimpleDual_M1_Proxy( 
  458.     _DSimpleDual __RPC_FAR * This);
  459.  
  460.  
  461. void __RPC_STUB _DSimpleDual_M1_Stub(
  462.     IRpcStubBuffer *This,
  463.     IRpcChannelBuffer *_pRpcChannelBuffer,
  464.     PRPC_MESSAGE _pRpcMessage,
  465.     DWORD *_pdwStubPhase);
  466.  
  467.  
  468.  
  469. #endif     /* ___DSimpleDual_INTERFACE_DEFINED__ */
  470.  
  471.  
  472. #ifdef __cplusplus
  473. DEFINE_GUID(CLSID_Simple,0xC48A81E3,0x4384,0x11D0,0x9C,0x9D,0x00,0x00,0x00,0x00,0x00,0x00);
  474.  
  475. class DECLSPEC_UUID("C48A81E3-4384-11D0-9C9D-000000000000")
  476. Simple;
  477. #endif
  478. #endif /* __SIMPLELib_LIBRARY_DEFINED__ */
  479.  
  480. /* Additional Prototypes for ALL interfaces */
  481.  
  482. /* end of Additional Prototypes */
  483.  
  484. #ifdef __cplusplus
  485. }
  486. #endif
  487.  
  488. #endif
  489.