| 1 | cpp_quote("/**") | 
 
 
 
 
 | 2 | cpp_quote(" * This file is part of the mingw-w64 runtime package.") | 
 
 
 
 
 | 3 | cpp_quote(" * No warranty is given; refer to the file DISCLAIMER within this package.") | 
 
 
 
 
 | 4 | cpp_quote(" */") | 
 
 
 
 
 | 5 | cpp_quote("") | 
 
 
 
 
 | 6 | cpp_quote("#include <winapifamily.h>") | 
 
 
 
 
 | 7 | cpp_quote("") | 
 
 
 
 
 | 8 | cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") | 
 
 
 
 
 | 9 | cpp_quote("") | 
 
 
 
 
 | 10 |  | 
 
 
 
 
 | 11 | import "objidl.idl"; | 
 
 
 
 
 | 12 |  | 
 
 
 
 
 | 13 | cpp_quote("") | 
 
 
 
 
 | 14 | interface IServiceProvider; | 
 
 
 
 
 | 15 |  | 
 
 
 
 
 | 16 | cpp_quote("") | 
 
 
 
 
 | 17 | [object, uuid (6d5140c1-7436-11ce-8034-00aa006009fa), pointer_default (unique)] | 
 
 
 
 
 | 18 | interface IServiceProvider : IUnknown { | 
 
 
 
 
 | 19 | typedef [unique] IServiceProvider *LPSERVICEPROVIDER; | 
 
 
 
 
 | 20 | cpp_quote("#if defined(__cplusplus) && !defined(CINTERFACE)") | 
 
 
 
 
 | 21 | cpp_quote("EXTERN_C const IID IID_IServiceProvider;") | 
 
 
 
 
 | 22 | cpp_quote("extern \"C++\" {") | 
 
 
 
 
 | 23 | cpp_quote("MIDL_INTERFACE(\"6d5140c1-7436-11ce-8034-00aa006009fa\")") | 
 
 
 
 
 | 24 | cpp_quote("IServiceProvider : public IUnknown {") | 
 
 
 
 
 | 25 | cpp_quote("public:") | 
 
 
 
 
 | 26 | cpp_quote("virtual  HRESULT STDMETHODCALLTYPE QueryService(REFGUID guidService, REFIID riid, void **ppvObject) = 0;") | 
 
 
 
 
 | 27 | cpp_quote("") | 
 
 
 
 
 | 28 | cpp_quote("template <class Q>") | 
 
 
 
 
 | 29 | cpp_quote("HRESULT STDMETHODCALLTYPE QueryService(REFGUID guidService, Q **pp) {") | 
 
 
 
 
 | 30 | cpp_quote("  return QueryService(guidService, __uuidof(Q), (void **)pp);") | 
 
 
 
 
 | 31 | cpp_quote("}") | 
 
 
 
 
 | 32 | cpp_quote("};") | 
 
 
 
 
 | 33 | cpp_quote("}") | 
 
 
 
 
 | 34 | cpp_quote("") | 
 
 
 
 
 | 35 | cpp_quote("HRESULT STDMETHODCALLTYPE IServiceProvider_RemoteQueryService_Proxy(IServiceProvider *This, REFGUID guidService, REFIID riid, IUnknown **ppvObject);") | 
 
 
 
 
 | 36 | cpp_quote("void __RPC_STUB IServiceProvider_RemoteQueryService_Stub(IRpcStubBuffer *This, IRpcChannelBuffer *_pRpcChannelBuffer, PRPC_MESSAGE _pRpcMessage, DWORD *_pdwStubPhase);") | 
 
 
 
 
 | 37 | cpp_quote("#ifdef __CRT_UUID_DECL") | 
 
 
 
 
 | 38 | cpp_quote("__CRT_UUID_DECL(IServiceProvider, 0x6d5140c1, 0x7436, 0x11ce, 0x80,0x34, 0x00,0xaa,0x00,0x60,0x09,0xfa)") | 
 
 
 
 
 | 39 | cpp_quote("#endif") | 
 
 
 
 
 | 40 | cpp_quote("#else") | 
 
 
 
 
 | 41 | [local] HRESULT QueryService ([in] REFGUID guidService,[in] REFIID riid,[out] void **ppvObject); | 
 
 
 
 
 | 42 | [call_as (QueryService)] HRESULT RemoteQueryService ([in] REFGUID guidService,[in] REFIID riid,[out, iid_is (riid)] IUnknown **ppvObject); | 
 
 
 
 
 | 43 | } | 
 
 
 
 
 | 44 | cpp_quote("#endif") | 
 
 
 
 
 | 45 | cpp_quote("") | 
 
 
 
 
 | 46 | cpp_quote("#endif") |