source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/servprov.idl@ 1175

Last change on this file since 1175 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 2.1 KB
Line 
1cpp_quote("/**")
2cpp_quote(" * This file is part of the mingw-w64 runtime package.")
3cpp_quote(" * No warranty is given; refer to the file DISCLAIMER within this package.")
4cpp_quote(" */")
5cpp_quote("")
6cpp_quote("#include <winapifamily.h>")
7cpp_quote("")
8cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
9cpp_quote("")
10
11import "objidl.idl";
12
13cpp_quote("")
14interface IServiceProvider;
15
16cpp_quote("")
17[object, uuid (6d5140c1-7436-11ce-8034-00aa006009fa), pointer_default (unique)]
18interface 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}
44cpp_quote("#endif")
45cpp_quote("")
46cpp_quote("#endif")
Note: See TracBrowser for help on using the repository browser.