ctxtcall.h (3880B) - Raw
1 /*** Autogenerated by WIDL 10.4 from include/ctxtcall.idl - Do not edit ***/ 2 3 #ifdef _WIN32 4 #ifndef __REQUIRED_RPCNDR_H_VERSION__ 5 #define __REQUIRED_RPCNDR_H_VERSION__ 475 6 #endif 7 #include <rpc.h> 8 #include <rpcndr.h> 9 #endif 10 11 #ifndef COM_NO_WINDOWS_H 12 #include <windows.h> 13 #include <ole2.h> 14 #endif 15 16 #ifndef __ctxtcall_h__ 17 #define __ctxtcall_h__ 18 19 /* Forward declarations */ 20 21 #ifndef __IContextCallback_FWD_DEFINED__ 22 #define __IContextCallback_FWD_DEFINED__ 23 typedef interface IContextCallback IContextCallback; 24 #ifdef __cplusplus 25 interface IContextCallback; 26 #endif /* __cplusplus */ 27 #endif 28 29 /* Headers for imported files */ 30 31 #include <wtypes.h> 32 #include <objidl.h> 33 #include <unknwn.h> 34 35 #ifdef __cplusplus 36 extern "C" { 37 #endif 38 39 typedef struct tagComCallData { 40 DWORD dwDispid; 41 DWORD dwReserved; 42 void *pUserDefined; 43 } ComCallData; 44 /***************************************************************************** 45 * IContextCallback interface 46 */ 47 #ifndef __IContextCallback_INTERFACE_DEFINED__ 48 #define __IContextCallback_INTERFACE_DEFINED__ 49 50 typedef HRESULT (__stdcall *PFNCONTEXTCALL)(ComCallData *pParam); 51 DEFINE_GUID(IID_IContextCallback, 0x000001da, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); 52 #if defined(__cplusplus) && !defined(CINTERFACE) 53 MIDL_INTERFACE("000001da-0000-0000-c000-000000000046") 54 IContextCallback : public IUnknown 55 { 56 virtual HRESULT STDMETHODCALLTYPE ContextCallback( 57 PFNCONTEXTCALL pCallback, 58 ComCallData *pParam, 59 REFIID riid, 60 int iMethod, 61 IUnknown *pUnk) = 0; 62 63 }; 64 #ifdef __CRT_UUID_DECL 65 __CRT_UUID_DECL(IContextCallback, 0x000001da, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46) 66 #endif 67 #else 68 typedef struct IContextCallbackVtbl { 69 BEGIN_INTERFACE 70 71 /*** IUnknown methods ***/ 72 HRESULT (STDMETHODCALLTYPE *QueryInterface)( 73 IContextCallback *This, 74 REFIID riid, 75 void **ppvObject); 76 77 ULONG (STDMETHODCALLTYPE *AddRef)( 78 IContextCallback *This); 79 80 ULONG (STDMETHODCALLTYPE *Release)( 81 IContextCallback *This); 82 83 /*** IContextCallback methods ***/ 84 HRESULT (STDMETHODCALLTYPE *ContextCallback)( 85 IContextCallback *This, 86 PFNCONTEXTCALL pCallback, 87 ComCallData *pParam, 88 REFIID riid, 89 int iMethod, 90 IUnknown *pUnk); 91 92 END_INTERFACE 93 } IContextCallbackVtbl; 94 95 interface IContextCallback { 96 CONST_VTBL IContextCallbackVtbl* lpVtbl; 97 }; 98 99 #ifdef COBJMACROS 100 #ifndef WIDL_C_INLINE_WRAPPERS 101 /*** IUnknown methods ***/ 102 #define IContextCallback_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) 103 #define IContextCallback_AddRef(This) (This)->lpVtbl->AddRef(This) 104 #define IContextCallback_Release(This) (This)->lpVtbl->Release(This) 105 /*** IContextCallback methods ***/ 106 #define IContextCallback_ContextCallback(This,pCallback,pParam,riid,iMethod,pUnk) (This)->lpVtbl->ContextCallback(This,pCallback,pParam,riid,iMethod,pUnk) 107 #else 108 /*** IUnknown methods ***/ 109 static inline HRESULT IContextCallback_QueryInterface(IContextCallback* This,REFIID riid,void **ppvObject) { 110 return This->lpVtbl->QueryInterface(This,riid,ppvObject); 111 } 112 static inline ULONG IContextCallback_AddRef(IContextCallback* This) { 113 return This->lpVtbl->AddRef(This); 114 } 115 static inline ULONG IContextCallback_Release(IContextCallback* This) { 116 return This->lpVtbl->Release(This); 117 } 118 /*** IContextCallback methods ***/ 119 static inline HRESULT IContextCallback_ContextCallback(IContextCallback* This,PFNCONTEXTCALL pCallback,ComCallData *pParam,REFIID riid,int iMethod,IUnknown *pUnk) { 120 return This->lpVtbl->ContextCallback(This,pCallback,pParam,riid,iMethod,pUnk); 121 } 122 #endif 123 #endif 124 125 #endif 126 127 128 #endif /* __IContextCallback_INTERFACE_DEFINED__ */ 129 130 /* Begin additional prototypes for all interfaces */ 131 132 133 /* End additional prototypes */ 134 135 #ifdef __cplusplus 136 } 137 #endif 138 139 #endif /* __ctxtcall_h__ */