ctxtcall.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  7. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  8. #endif
  9. #include "rpc.h"
  10. #include "rpcndr.h"
  11. #ifndef __RPCNDR_H_VERSION__
  12. #error This stub requires an updated version of <rpcndr.h>
  13. #endif
  14. #ifndef COM_NO_WINDOWS_H
  15. #include "windows.h"
  16. #include "ole2.h"
  17. #endif
  18. #ifndef __ctxtcall_h__
  19. #define __ctxtcall_h__
  20. #ifndef __IContextCallback_FWD_DEFINED__
  21. #define __IContextCallback_FWD_DEFINED__
  22. typedef struct IContextCallback IContextCallback;
  23. #endif
  24. #include "wtypes.h"
  25. #include "objidl.h"
  26. #ifdef __cplusplus
  27. extern "C"{
  28. #endif
  29. #ifndef __MIDL_user_allocate_free_DEFINED__
  30. #define __MIDL_user_allocate_free_DEFINED__
  31. void *__RPC_API MIDL_user_allocate(size_t);
  32. void __RPC_API MIDL_user_free(void *);
  33. #endif
  34. typedef struct tagComCallData {
  35. DWORD dwDispid;
  36. DWORD dwReserved;
  37. void *pUserDefined;
  38. } ComCallData;
  39. extern RPC_IF_HANDLE __MIDL_itf_ctxtcall_0000_v0_0_c_ifspec;
  40. extern RPC_IF_HANDLE __MIDL_itf_ctxtcall_0000_v0_0_s_ifspec;
  41. #ifndef __IContextCallback_INTERFACE_DEFINED__
  42. #define __IContextCallback_INTERFACE_DEFINED__
  43. typedef HRESULT (WINAPI *PFNCONTEXTCALL)(ComCallData *pParam);
  44. EXTERN_C const IID IID_IContextCallback;
  45. #if defined(__cplusplus) && !defined(CINTERFACE)
  46. struct IContextCallback : public IUnknown {
  47. public:
  48. virtual HRESULT WINAPI ContextCallback(PFNCONTEXTCALL pfnCallback,ComCallData *pParam,REFIID riid,int iMethod,IUnknown *pUnk) = 0;
  49. };
  50. #else
  51. typedef struct IContextCallbackVtbl {
  52. BEGIN_INTERFACE
  53. HRESULT (WINAPI *QueryInterface)(IContextCallback *This,REFIID riid,void **ppvObject);
  54. ULONG (WINAPI *AddRef)(IContextCallback *This);
  55. ULONG (WINAPI *Release)(IContextCallback *This);
  56. HRESULT (WINAPI *ContextCallback)(IContextCallback *This,PFNCONTEXTCALL pfnCallback,ComCallData *pParam,REFIID riid,int iMethod,IUnknown *pUnk);
  57. END_INTERFACE
  58. } IContextCallbackVtbl;
  59. struct IContextCallback {
  60. CONST_VTBL struct IContextCallbackVtbl *lpVtbl;
  61. };
  62. #ifdef COBJMACROS
  63. #define IContextCallback_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  64. #define IContextCallback_AddRef(This) (This)->lpVtbl->AddRef(This)
  65. #define IContextCallback_Release(This) (This)->lpVtbl->Release(This)
  66. #define IContextCallback_ContextCallback(This,pfnCallback,pParam,riid,iMethod,pUnk) (This)->lpVtbl->ContextCallback(This,pfnCallback,pParam,riid,iMethod,pUnk)
  67. #endif
  68. #endif
  69. HRESULT WINAPI IContextCallback_ContextCallback_Proxy(IContextCallback *This,PFNCONTEXTCALL pfnCallback,ComCallData *pParam,REFIID riid,int iMethod,IUnknown *pUnk);
  70. void __RPC_STUB IContextCallback_ContextCallback_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  71. #endif
  72. #ifdef __cplusplus
  73. }
  74. #endif
  75. #endif