objsafe.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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__ 440
  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 __objsafe_h__
  19. #define __objsafe_h__
  20. #ifndef __IObjectSafety_FWD_DEFINED__
  21. #define __IObjectSafety_FWD_DEFINED__
  22. typedef struct IObjectSafety IObjectSafety;
  23. #endif
  24. #include "unknwn.h"
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. #ifndef __MIDL_user_allocate_free_DEFINED__
  29. #define __MIDL_user_allocate_free_DEFINED__
  30. void *__RPC_API MIDL_user_allocate(size_t);
  31. void __RPC_API MIDL_user_free(void *);
  32. #endif
  33. #ifndef _LPSAFEOBJECT_DEFINED
  34. #define _LPSAFEOBJECT_DEFINED
  35. #define INTERFACESAFE_FOR_UNTRUSTED_CALLER 0x00000001
  36. #define INTERFACESAFE_FOR_UNTRUSTED_DATA 0x00000002
  37. #define INTERFACE_USES_DISPEX 0x00000004
  38. #define INTERFACE_USES_SECURITY_MANAGER 0x00000008
  39. DEFINE_GUID(IID_IObjectSafety,0xcb5bdc81,0x93c1,0x11cf,0x8f,0x20,0x0,0x80,0x5f,0x2c,0xd0,0x64);
  40. EXTERN_C GUID CATID_SafeForScripting;
  41. EXTERN_C GUID CATID_SafeForInitializing;
  42. extern RPC_IF_HANDLE __MIDL_itf_objsafe_0000_v0_0_c_ifspec;
  43. extern RPC_IF_HANDLE __MIDL_itf_objsafe_0000_v0_0_s_ifspec;
  44. #ifndef __IObjectSafety_INTERFACE_DEFINED__
  45. #define __IObjectSafety_INTERFACE_DEFINED__
  46. EXTERN_C const IID IID_IObjectSafety;
  47. #if defined(__cplusplus) && !defined(CINTERFACE)
  48. struct IObjectSafety : public IUnknown {
  49. public:
  50. virtual HRESULT WINAPI GetInterfaceSafetyOptions(REFIID riid,DWORD *pdwSupportedOptions,DWORD *pdwEnabledOptions) = 0;
  51. virtual HRESULT WINAPI SetInterfaceSafetyOptions(REFIID riid,DWORD dwOptionSetMask,DWORD dwEnabledOptions) = 0;
  52. };
  53. #else
  54. typedef struct IObjectSafetyVtbl {
  55. BEGIN_INTERFACE
  56. HRESULT (WINAPI *QueryInterface)(IObjectSafety *This,REFIID riid,void **ppvObject);
  57. ULONG (WINAPI *AddRef)(IObjectSafety *This);
  58. ULONG (WINAPI *Release)(IObjectSafety *This);
  59. HRESULT (WINAPI *GetInterfaceSafetyOptions)(IObjectSafety *This,REFIID riid,DWORD *pdwSupportedOptions,DWORD *pdwEnabledOptions);
  60. HRESULT (WINAPI *SetInterfaceSafetyOptions)(IObjectSafety *This,REFIID riid,DWORD dwOptionSetMask,DWORD dwEnabledOptions);
  61. END_INTERFACE
  62. } IObjectSafetyVtbl;
  63. struct IObjectSafety {
  64. CONST_VTBL struct IObjectSafetyVtbl *lpVtbl;
  65. };
  66. #ifdef COBJMACROS
  67. #define IObjectSafety_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  68. #define IObjectSafety_AddRef(This) (This)->lpVtbl->AddRef(This)
  69. #define IObjectSafety_Release(This) (This)->lpVtbl->Release(This)
  70. #define IObjectSafety_GetInterfaceSafetyOptions(This,riid,pdwSupportedOptions,pdwEnabledOptions) (This)->lpVtbl->GetInterfaceSafetyOptions(This,riid,pdwSupportedOptions,pdwEnabledOptions)
  71. #define IObjectSafety_SetInterfaceSafetyOptions(This,riid,dwOptionSetMask,dwEnabledOptions) (This)->lpVtbl->SetInterfaceSafetyOptions(This,riid,dwOptionSetMask,dwEnabledOptions)
  72. #endif
  73. #endif
  74. HRESULT WINAPI IObjectSafety_GetInterfaceSafetyOptions_Proxy(IObjectSafety *This,REFIID riid,DWORD *pdwSupportedOptions,DWORD *pdwEnabledOptions);
  75. void __RPC_STUB IObjectSafety_GetInterfaceSafetyOptions_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  76. HRESULT WINAPI IObjectSafety_SetInterfaceSafetyOptions_Proxy(IObjectSafety *This,REFIID riid,DWORD dwOptionSetMask,DWORD dwEnabledOptions);
  77. void __RPC_STUB IObjectSafety_SetInterfaceSafetyOptions_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  78. #endif
  79. typedef IObjectSafety *LPOBJECTSAFETY;
  80. #endif
  81. extern RPC_IF_HANDLE __MIDL_itf_objsafe_0009_v0_0_c_ifspec;
  82. extern RPC_IF_HANDLE __MIDL_itf_objsafe_0009_v0_0_s_ifspec;
  83. #ifdef __cplusplus
  84. }
  85. #endif
  86. #endif