New loading scheme for Winelib apps, makes them behave like builtin
[wine] / include / wine / obj_serviceprovider.h
1 /*
2  * Defines the COM interfaces and APIs related to IServiceProvider
3  *
4  * Depends on 'obj_base.h'.
5  *
6  * Copyright (C) 2000 Juergen Schmied
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21  */
22
23 #ifndef __WINE_WINE_OBJ_SERVICEPROVIDER_H
24 #define __WINE_WINE_OBJ_SERVICEPROVIDER_H
25
26 #include "wine/obj_base.h"
27 #include "winbase.h"
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif /* defined(__cplusplus) */
32
33 /*****************************************************************************
34  * Predeclare the interfaces
35  */
36 DEFINE_GUID(IID_IServiceProvider, 0x6d5140c1, 0x7436, 0x11ce, 0x80, 0x34, 0x00, 0xaa, 0x00, 0x60, 0x09, 0xfa);
37 typedef struct IServiceProvider IServiceProvider, *LPSERVICEPROVIDER;
38
39
40 /*****************************************************************************
41  * IServiceProvider interface
42  */
43 #define ICOM_INTERFACE IServiceProvider
44 #define IServiceProvider_METHODS \
45     ICOM_METHOD3( HRESULT, QueryService, REFGUID, guidService, REFIID, riid, void**, ppv)
46 #define IServiceProvider_IMETHODS \
47     IUnknown_IMETHODS \
48     IServiceProvider_METHODS
49 ICOM_DEFINE(IServiceProvider,IUnknown)
50 #undef ICOM_INTERFACE
51
52 /*** IUnknown methods ***/
53 #define IServiceProvider_QueryInterface(p,a,b)          ICOM_CALL2(QueryInterface,p,a,b)
54 #define IServiceProvider_AddRef(p)                      ICOM_CALL (AddRef,p)
55 #define IServiceProvider_Release(p)                     ICOM_CALL (Release,p)
56 /*** IServiceProvider methods ***/
57 #define IServiceProvider_QueryService(p,a,b,c)          ICOM_CALL3(QueryService,p,a,b,c)
58
59 #ifdef __cplusplus
60 } /* extern "C" */
61 #endif /* defined(__cplusplus) */
62
63 #endif /* __WINE_WINE_OBJ_SERVICEPROVIDER_H */