1 #ifndef __WINE_OBJBASE_H
2 #define __WINE_OBJBASE_H
8 /* the following depend only on obj_base.h */
9 #include "wine/obj_base.h"
10 #include "wine/obj_misc.h"
11 #include "wine/obj_channel.h"
12 #include "wine/obj_clientserver.h"
13 #include "wine/obj_storage.h"
15 /* the following depend on obj_storage.h */
16 #include "wine/obj_marshal.h"
17 #include "wine/obj_moniker.h"
18 #include "wine/obj_propertystorage.h"
20 /* the following depend on obj_moniker.h */
21 #include "wine/obj_dataobject.h"
23 #include "wine/obj_dragdrop.h"
26 /* For compatibility only, at least for now */
38 HRESULT WINAPI GetClassFile(LPCOLESTR filePathName,CLSID *pclsid);
45 /* These macros are msdev's way of defining COM objects.
46 * They are provided here for use by Winelib developpers.
51 #define WINOLEAPI STDAPI
52 #define WINOLEAPI_(type) STDAPI_(type)
54 #if defined(__cplusplus) && !defined(CINTERFACE)
55 #define interface struct
56 #define STDMETHOD(method) virtual HRESULT STDMETHODCALLTYPE method
57 #define STDMETHOD_(type,method) virtual type STDMETHODCALLTYPE method
61 #define DECLARE_INTERFACE(iface) interface iface
62 #define DECLARE_INTERFACE_(iface, baseiface) interface iface : public baseiface
64 #define BEGIN_INTERFACE
69 #define interface struct
70 #define STDMETHOD(method) HRESULT STDMETHODCALLTYPE (*method)
71 #define STDMETHOD_(type,method) type STDMETHODCALLTYPE (*method)
73 #define THIS_ INTERFACE FAR* This,
74 #define THIS INTERFACE FAR* This
78 #define CONST_VTBL const
79 #define DECLARE_INTERFACE(iface) \
80 typedef interface iface { const struct iface##Vtbl FAR* lpVtbl; } iface; \
81 typedef const struct iface##Vtbl iface##Vtbl; \
82 const struct iface##Vtbl
86 #define DECLARE_INTERFACE(iface) \
87 typedef interface iface { struct iface##Vtbl FAR* lpVtbl; } iface; \
88 typedef struct iface##Vtbl iface##Vtbl; \
91 #define DECLARE_INTERFACE_(iface, baseiface) DECLARE_INTERFACE(iface)
93 #define BEGIN_INTERFACE
96 #endif /* __cplusplus && !CINTERFACE */
100 #endif /* __WINE_OBJBASE_H */