Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

260 lines
7.8 KiB

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 6.00.0361 */
  3. /* Compiler settings for objsafe.idl:
  4. Oicf, W1, Zp8, env=Win32 (32b run)
  5. protocol : dce , ms_ext, c_ext
  6. error checks: allocation ref bounds_check enum stub_data
  7. VC __declspec() decoration level:
  8. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  9. DECLSPEC_UUID(), MIDL_INTERFACE()
  10. */
  11. //@@MIDL_FILE_HEADING( )
  12. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __objsafe_h__
  27. #define __objsafe_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __IObjectSafety_FWD_DEFINED__
  33. #define __IObjectSafety_FWD_DEFINED__
  34. typedef interface IObjectSafety IObjectSafety;
  35. #endif /* __IObjectSafety_FWD_DEFINED__ */
  36. /* header files for imported files */
  37. #include "unknwn.h"
  38. #ifdef __cplusplus
  39. extern "C"{
  40. #endif
  41. void * __RPC_USER MIDL_user_allocate(size_t);
  42. void __RPC_USER MIDL_user_free( void * );
  43. /* interface __MIDL_itf_objsafe_0000 */
  44. /* [local] */
  45. //=--------------------------------------------------------------------------=
  46. // ObjSafe.h
  47. //=--------------------------------------------------------------------------=
  48. // (C) Copyright 1995-1998 Microsoft Corporation. All Rights Reserved.
  49. //
  50. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  51. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  52. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  53. // PARTICULAR PURPOSE.
  54. //=--------------------------------------------------------------------------=
  55. #pragma comment(lib,"uuid.lib")
  56. //---------------------------------------------------------------------------=
  57. // Object Safety Interfaces.
  58. //+--------------------------------------------------------------------------=
  59. //
  60. // Contents: IObjectSafety definition
  61. //
  62. //
  63. // IObjectSafety should be implemented by objects that have interfaces which
  64. // support "untrusted" clients (for example, scripts). It allows the owner of
  65. // the object to specify which interfaces need to be protected from untrusted
  66. // use. Examples of interfaces that might be protected in this way are:
  67. //
  68. // IID_IDispatch - "Safe for automating with untrusted automation client or script"
  69. // IID_IPersist* - "Safe for initializing with untrusted data"
  70. // IID_IActiveScript - "Safe for running untrusted scripts"
  71. //
  72. //---------------------------------------------------------------------------=
  73. #ifndef _LPSAFEOBJECT_DEFINED
  74. #define _LPSAFEOBJECT_DEFINED
  75. // Option bit definitions for IObjectSafety:
  76. #define INTERFACESAFE_FOR_UNTRUSTED_CALLER 0x00000001 // Caller of interface may be untrusted
  77. #define INTERFACESAFE_FOR_UNTRUSTED_DATA 0x00000002 // Data passed into interface may be untrusted
  78. #define INTERFACE_USES_DISPEX 0x00000004 // Object knows to use IDispatchEx
  79. #define INTERFACE_USES_SECURITY_MANAGER 0x00000008 // Object knows to use IInternetHostSecurityManager
  80. // {CB5BDC81-93C1-11cf-8F20-00805F2CD064}
  81. DEFINE_GUID(IID_IObjectSafety, 0xcb5bdc81, 0x93c1, 0x11cf, 0x8f, 0x20, 0x0, 0x80, 0x5f, 0x2c, 0xd0, 0x64);
  82. EXTERN_C GUID CATID_SafeForScripting;
  83. EXTERN_C GUID CATID_SafeForInitializing;
  84. extern RPC_IF_HANDLE __MIDL_itf_objsafe_0000_v0_0_c_ifspec;
  85. extern RPC_IF_HANDLE __MIDL_itf_objsafe_0000_v0_0_s_ifspec;
  86. #ifndef __IObjectSafety_INTERFACE_DEFINED__
  87. #define __IObjectSafety_INTERFACE_DEFINED__
  88. /* interface IObjectSafety */
  89. /* [unique][uuid][object] */
  90. EXTERN_C const IID IID_IObjectSafety;
  91. #if defined(__cplusplus) && !defined(CINTERFACE)
  92. MIDL_INTERFACE("CB5BDC81-93C1-11cf-8F20-00805F2CD064")
  93. IObjectSafety : public IUnknown
  94. {
  95. public:
  96. virtual HRESULT STDMETHODCALLTYPE GetInterfaceSafetyOptions(
  97. /* [in] */ REFIID riid,
  98. /* [out] */ DWORD *pdwSupportedOptions,
  99. /* [out] */ DWORD *pdwEnabledOptions) = 0;
  100. virtual HRESULT STDMETHODCALLTYPE SetInterfaceSafetyOptions(
  101. /* [in] */ REFIID riid,
  102. /* [in] */ DWORD dwOptionSetMask,
  103. /* [in] */ DWORD dwEnabledOptions) = 0;
  104. };
  105. #else /* C style interface */
  106. typedef struct IObjectSafetyVtbl
  107. {
  108. BEGIN_INTERFACE
  109. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  110. IObjectSafety * This,
  111. /* [in] */ REFIID riid,
  112. /* [iid_is][out] */ void **ppvObject);
  113. ULONG ( STDMETHODCALLTYPE *AddRef )(
  114. IObjectSafety * This);
  115. ULONG ( STDMETHODCALLTYPE *Release )(
  116. IObjectSafety * This);
  117. HRESULT ( STDMETHODCALLTYPE *GetInterfaceSafetyOptions )(
  118. IObjectSafety * This,
  119. /* [in] */ REFIID riid,
  120. /* [out] */ DWORD *pdwSupportedOptions,
  121. /* [out] */ DWORD *pdwEnabledOptions);
  122. HRESULT ( STDMETHODCALLTYPE *SetInterfaceSafetyOptions )(
  123. IObjectSafety * This,
  124. /* [in] */ REFIID riid,
  125. /* [in] */ DWORD dwOptionSetMask,
  126. /* [in] */ DWORD dwEnabledOptions);
  127. END_INTERFACE
  128. } IObjectSafetyVtbl;
  129. interface IObjectSafety
  130. {
  131. CONST_VTBL struct IObjectSafetyVtbl *lpVtbl;
  132. };
  133. #ifdef COBJMACROS
  134. #define IObjectSafety_QueryInterface(This,riid,ppvObject) \
  135. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  136. #define IObjectSafety_AddRef(This) \
  137. (This)->lpVtbl -> AddRef(This)
  138. #define IObjectSafety_Release(This) \
  139. (This)->lpVtbl -> Release(This)
  140. #define IObjectSafety_GetInterfaceSafetyOptions(This,riid,pdwSupportedOptions,pdwEnabledOptions) \
  141. (This)->lpVtbl -> GetInterfaceSafetyOptions(This,riid,pdwSupportedOptions,pdwEnabledOptions)
  142. #define IObjectSafety_SetInterfaceSafetyOptions(This,riid,dwOptionSetMask,dwEnabledOptions) \
  143. (This)->lpVtbl -> SetInterfaceSafetyOptions(This,riid,dwOptionSetMask,dwEnabledOptions)
  144. #endif /* COBJMACROS */
  145. #endif /* C style interface */
  146. HRESULT STDMETHODCALLTYPE IObjectSafety_GetInterfaceSafetyOptions_Proxy(
  147. IObjectSafety * This,
  148. /* [in] */ REFIID riid,
  149. /* [out] */ DWORD *pdwSupportedOptions,
  150. /* [out] */ DWORD *pdwEnabledOptions);
  151. void __RPC_STUB IObjectSafety_GetInterfaceSafetyOptions_Stub(
  152. IRpcStubBuffer *This,
  153. IRpcChannelBuffer *_pRpcChannelBuffer,
  154. PRPC_MESSAGE _pRpcMessage,
  155. DWORD *_pdwStubPhase);
  156. HRESULT STDMETHODCALLTYPE IObjectSafety_SetInterfaceSafetyOptions_Proxy(
  157. IObjectSafety * This,
  158. /* [in] */ REFIID riid,
  159. /* [in] */ DWORD dwOptionSetMask,
  160. /* [in] */ DWORD dwEnabledOptions);
  161. void __RPC_STUB IObjectSafety_SetInterfaceSafetyOptions_Stub(
  162. IRpcStubBuffer *This,
  163. IRpcChannelBuffer *_pRpcChannelBuffer,
  164. PRPC_MESSAGE _pRpcMessage,
  165. DWORD *_pdwStubPhase);
  166. #endif /* __IObjectSafety_INTERFACE_DEFINED__ */
  167. /* interface __MIDL_itf_objsafe_0009 */
  168. /* [local] */
  169. typedef /* [unique] */ IObjectSafety *LPOBJECTSAFETY;
  170. #endif
  171. extern RPC_IF_HANDLE __MIDL_itf_objsafe_0009_v0_0_c_ifspec;
  172. extern RPC_IF_HANDLE __MIDL_itf_objsafe_0009_v0_0_s_ifspec;
  173. /* Additional Prototypes for ALL interfaces */
  174. /* end of Additional Prototypes */
  175. #ifdef __cplusplus
  176. }
  177. #endif
  178. #endif