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.

253 lines
7.0 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 servprov.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 __servprov_h__
  27. #define __servprov_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __IServiceProvider_FWD_DEFINED__
  33. #define __IServiceProvider_FWD_DEFINED__
  34. typedef interface IServiceProvider IServiceProvider;
  35. #endif /* __IServiceProvider_FWD_DEFINED__ */
  36. /* header files for imported files */
  37. #include "objidl.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_servprov_0000 */
  44. /* [local] */
  45. //=--------------------------------------------------------------------------=
  46. // ServProv.h
  47. //=--------------------------------------------------------------------------=
  48. // (C) Copyright 1995-1999 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. // IServiceProvider Interfaces.
  58. extern RPC_IF_HANDLE __MIDL_itf_servprov_0000_v0_0_c_ifspec;
  59. extern RPC_IF_HANDLE __MIDL_itf_servprov_0000_v0_0_s_ifspec;
  60. #ifndef __IServiceProvider_INTERFACE_DEFINED__
  61. #define __IServiceProvider_INTERFACE_DEFINED__
  62. /* interface IServiceProvider */
  63. /* [unique][uuid][object] */
  64. typedef /* [unique] */ IServiceProvider *LPSERVICEPROVIDER;
  65. #if (_MSC_VER >= 1100) && defined(__cplusplus) && !defined(CINTERFACE)
  66. EXTERN_C const IID IID_IServiceProvider;
  67. extern "C++"
  68. {
  69. MIDL_INTERFACE("6d5140c1-7436-11ce-8034-00aa006009fa")
  70. IServiceProvider : public IUnknown
  71. {
  72. public:
  73. virtual /* [local] */ HRESULT STDMETHODCALLTYPE QueryService(
  74. /* [in] */ REFGUID guidService,
  75. /* [in] */ REFIID riid,
  76. /* [out] */ void __RPC_FAR *__RPC_FAR *ppvObject) = 0;
  77. template <class Q>
  78. HRESULT STDMETHODCALLTYPE QueryService(REFGUID guidService, Q** pp)
  79. {
  80. return QueryService(guidService, __uuidof(Q), (void **)pp);
  81. }
  82. };
  83. }
  84. /* [call_as] */ HRESULT STDMETHODCALLTYPE IServiceProvider_RemoteQueryService_Proxy(
  85. IServiceProvider __RPC_FAR * This,
  86. /* [in] */ REFGUID guidService,
  87. /* [in] */ REFIID riid,
  88. /* [iid_is][out] */ IUnknown __RPC_FAR *__RPC_FAR *ppvObject);
  89. void __RPC_STUB IServiceProvider_RemoteQueryService_Stub(
  90. IRpcStubBuffer *This,
  91. IRpcChannelBuffer *_pRpcChannelBuffer,
  92. PRPC_MESSAGE _pRpcMessage,
  93. DWORD *_pdwStubPhase);
  94. #else // VC6 Hack
  95. EXTERN_C const IID IID_IServiceProvider;
  96. #if defined(__cplusplus) && !defined(CINTERFACE)
  97. MIDL_INTERFACE("6d5140c1-7436-11ce-8034-00aa006009fa")
  98. IServiceProvider : public IUnknown
  99. {
  100. public:
  101. virtual /* [local] */ HRESULT STDMETHODCALLTYPE QueryService(
  102. /* [in] */ REFGUID guidService,
  103. /* [in] */ REFIID riid,
  104. /* [out] */ void **ppvObject) = 0;
  105. };
  106. #else /* C style interface */
  107. typedef struct IServiceProviderVtbl
  108. {
  109. BEGIN_INTERFACE
  110. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  111. IServiceProvider * This,
  112. /* [in] */ REFIID riid,
  113. /* [iid_is][out] */ void **ppvObject);
  114. ULONG ( STDMETHODCALLTYPE *AddRef )(
  115. IServiceProvider * This);
  116. ULONG ( STDMETHODCALLTYPE *Release )(
  117. IServiceProvider * This);
  118. /* [local] */ HRESULT ( STDMETHODCALLTYPE *QueryService )(
  119. IServiceProvider * This,
  120. /* [in] */ REFGUID guidService,
  121. /* [in] */ REFIID riid,
  122. /* [out] */ void **ppvObject);
  123. END_INTERFACE
  124. } IServiceProviderVtbl;
  125. interface IServiceProvider
  126. {
  127. CONST_VTBL struct IServiceProviderVtbl *lpVtbl;
  128. };
  129. #ifdef COBJMACROS
  130. #define IServiceProvider_QueryInterface(This,riid,ppvObject) \
  131. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  132. #define IServiceProvider_AddRef(This) \
  133. (This)->lpVtbl -> AddRef(This)
  134. #define IServiceProvider_Release(This) \
  135. (This)->lpVtbl -> Release(This)
  136. #define IServiceProvider_QueryService(This,guidService,riid,ppvObject) \
  137. (This)->lpVtbl -> QueryService(This,guidService,riid,ppvObject)
  138. #endif /* COBJMACROS */
  139. #endif /* C style interface */
  140. /* [call_as] */ HRESULT STDMETHODCALLTYPE IServiceProvider_RemoteQueryService_Proxy(
  141. IServiceProvider * This,
  142. /* [in] */ REFGUID guidService,
  143. /* [in] */ REFIID riid,
  144. /* [iid_is][out] */ IUnknown **ppvObject);
  145. void __RPC_STUB IServiceProvider_RemoteQueryService_Stub(
  146. IRpcStubBuffer *This,
  147. IRpcChannelBuffer *_pRpcChannelBuffer,
  148. PRPC_MESSAGE _pRpcMessage,
  149. DWORD *_pdwStubPhase);
  150. #endif /* __IServiceProvider_INTERFACE_DEFINED__ */
  151. /* interface __MIDL_itf_servprov_0093 */
  152. /* [local] */
  153. #endif // VC6 Hack
  154. extern RPC_IF_HANDLE __MIDL_itf_servprov_0093_v0_0_c_ifspec;
  155. extern RPC_IF_HANDLE __MIDL_itf_servprov_0093_v0_0_s_ifspec;
  156. /* Additional Prototypes for ALL interfaces */
  157. /* [local] */ HRESULT STDMETHODCALLTYPE IServiceProvider_QueryService_Proxy(
  158. IServiceProvider * This,
  159. /* [in] */ REFGUID guidService,
  160. /* [in] */ REFIID riid,
  161. /* [out] */ void **ppvObject);
  162. /* [call_as] */ HRESULT STDMETHODCALLTYPE IServiceProvider_QueryService_Stub(
  163. IServiceProvider * This,
  164. /* [in] */ REFGUID guidService,
  165. /* [in] */ REFIID riid,
  166. /* [iid_is][out] */ IUnknown **ppvObject);
  167. /* end of Additional Prototypes */
  168. #ifdef __cplusplus
  169. }
  170. #endif
  171. #endif