- split logoff and shutdown resources
[reactos.git] / reactos / include / wine / unknwn.h
1 #include_next <unknwn.h>
2
3 #ifndef __WINE_UNKNWN_H
4 #define __WINE_UNKNWN_H
5
6 DEFINE_GUID(IID_IUnknown, 0x00000000, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
7
8 /*** IUnknown methods ***/
9 #define IUnknown_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
10 #define IUnknown_AddRef(p) (p)->lpVtbl->AddRef(p)
11 #define IUnknown_Release(p) (p)->lpVtbl->Release(p)
12
13 DEFINE_GUID(IID_IClassFactory, 0x00000001, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
14
15 /*** IUnknown methods ***/
16 #define IClassFactory_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
17 #define IClassFactory_AddRef(p) (p)->lpVtbl->AddRef(p)
18 #define IClassFactory_Release(p) (p)->lpVtbl->Release(p)
19 /*** IClassFactory methods ***/
20 #define IClassFactory_CreateInstance(p,a,b,c) (p)->lpVtbl->CreateInstance(p,a,b,c)
21 #define IClassFactory_LockServer(p,a) (p)->lpVtbl->LockServer(p,a)
22
23 #define IUnknown_METHODS \
24 /*** IUnknown methods ***/ \
25 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
26 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
27 STDMETHOD_(ULONG,Release)(THIS) PURE;
28
29 #endif /* __WINE_UNKNWN_H */