1 #ifndef __WINE_OBJBASE_H
2 #define __WINE_OBJBASE_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"
25 /* For compatibility only, at least for now */
33 HRESULT WINAPI GetClassFile(LPCOLESTR filePathName,CLSID *pclsid);
40 /* These macros are msdev's way of defining COM objects.
41 * They are provided here for use by Winelib developpers.
46 #define WINOLEAPI STDAPI
47 #define WINOLEAPI_(type) STDAPI_(type)
49 #if defined(__cplusplus) && !defined(CINTERFACE)
50 #define interface struct
51 #define STDMETHOD(method) virtual HRESULT STDMETHODCALLTYPE method
52 #define STDMETHOD_(type,method) virtual type STDMETHODCALLTYPE method
56 #define DECLARE_INTERFACE(iface) interface iface
57 #define DECLARE_INTERFACE_(iface, baseiface) interface iface : public baseiface
59 #define BEGIN_INTERFACE
64 #define interface struct
65 #define STDMETHOD(method) HRESULT STDMETHODCALLTYPE (*method)
66 #define STDMETHOD_(type,method) type STDMETHODCALLTYPE (*method)
68 #define THIS_ INTERFACE FAR* This,
69 #define THIS INTERFACE FAR* This
73 #define CONST_VTBL const
74 #define DECLARE_INTERFACE(iface) \
75 typedef interface iface { const struct iface##Vtbl FAR* lpVtbl; } iface; \
76 typedef const struct iface##Vtbl iface##Vtbl; \
77 const struct iface##Vtbl
81 #define DECLARE_INTERFACE(iface) \
82 typedef interface iface { struct iface##Vtbl FAR* lpVtbl; } iface; \
83 typedef struct iface##Vtbl iface##Vtbl; \
86 #define DECLARE_INTERFACE_(iface, baseiface) DECLARE_INTERFACE(iface)
88 #define BEGIN_INTERFACE
91 #endif /* __cplusplus && !CINTERFACE */
95 #endif /* __WINE_OBJBASE_H */