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