- Provide lobby provider COM object header file and stub implementation
[wine.git] / include / objbase.h
blob52c04ab1803a154834fd0991ac0631ce018cefc7
1 #ifndef __WINE_OBJBASE_H
2 #define __WINE_OBJBASE_H
4 #define _OBJBASE_H_
6 #include "unknwn.h"
8 /* the following depend only on obj_base.h */
9 #include "wine/obj_misc.h"
10 #include "wine/obj_channel.h"
11 #include "wine/obj_clientserver.h"
12 #include "wine/obj_storage.h"
14 /* the following depend on obj_storage.h */
15 #include "wine/obj_marshal.h"
16 #include "wine/obj_moniker.h"
17 #include "wine/obj_propertystorage.h"
19 /* the following depend on obj_moniker.h */
20 #include "wine/obj_dataobject.h"
22 #include "wine/obj_dragdrop.h"
24 #ifndef RC_INVOKED
25 /* For compatibility only, at least for now */
26 #include <stdlib.h>
27 #endif
29 #ifndef INITGUID
30 #include "cguid.h"
31 #endif
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
37 HRESULT WINAPI GetClassFile(LPCOLESTR filePathName,CLSID *pclsid);
39 #ifdef __cplusplus
41 #endif
43 #ifndef __WINE__
44 /* These macros are msdev's way of defining COM objects.
45 * They are provided here for use by Winelib developpers.
47 #define FARSTRUCT
48 #define HUGEP
50 #define WINOLEAPI STDAPI
51 #define WINOLEAPI_(type) STDAPI_(type)
53 #if defined(__cplusplus) && !defined(CINTERFACE)
54 #define interface struct
55 #define STDMETHOD(method) virtual HRESULT STDMETHODCALLTYPE method
56 #define STDMETHOD_(type,method) virtual type STDMETHODCALLTYPE method
57 #define PURE = 0
58 #define THIS_
59 #define THIS void
60 #define DECLARE_INTERFACE(iface) interface iface
61 #define DECLARE_INTERFACE_(iface, baseiface) interface iface : public baseiface
63 #define BEGIN_INTERFACE
64 #define END_INTERFACE
66 #else
68 #define interface struct
69 #define STDMETHOD(method) HRESULT STDMETHODCALLTYPE (*method)
70 #define STDMETHOD_(type,method) type STDMETHODCALLTYPE (*method)
71 #define PURE
72 #define THIS_ INTERFACE FAR* This,
73 #define THIS INTERFACE FAR* This
75 #ifdef CONST_VTABLE
76 #undef CONST_VTBL
77 #define CONST_VTBL const
78 #define DECLARE_INTERFACE(iface) \
79 typedef interface iface { const struct iface##Vtbl FAR* lpVtbl; } iface; \
80 typedef const struct iface##Vtbl iface##Vtbl; \
81 const struct iface##Vtbl
82 #else
83 #undef CONST_VTBL
84 #define CONST_VTBL
85 #define DECLARE_INTERFACE(iface) \
86 typedef interface iface { struct iface##Vtbl FAR* lpVtbl; } iface; \
87 typedef struct iface##Vtbl iface##Vtbl; \
88 struct iface##Vtbl
89 #endif
90 #define DECLARE_INTERFACE_(iface, baseiface) DECLARE_INTERFACE(iface)
92 #define BEGIN_INTERFACE
93 #define END_INTERFACE
95 #endif /* __cplusplus && !CINTERFACE */
97 #endif /* __WINE__ */
99 #endif /* __WINE_OBJBASE_H */