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 */
37 HRESULT WINAPI
GetClassFile(LPCOLESTR filePathName
,CLSID
*pclsid
);
44 /* These macros are msdev's way of defining COM objects.
45 * They are provided here for use by Winelib developpers.
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
60 #define DECLARE_INTERFACE(iface) interface iface
61 #define DECLARE_INTERFACE_(iface, baseiface) interface iface : public baseiface
63 #define BEGIN_INTERFACE
68 #define interface struct
69 #define STDMETHOD(method) HRESULT STDMETHODCALLTYPE (*method)
70 #define STDMETHOD_(type,method) type STDMETHODCALLTYPE (*method)
72 #define THIS_ INTERFACE FAR* This,
73 #define THIS INTERFACE FAR* This
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
85 #define DECLARE_INTERFACE(iface) \
86 typedef interface iface { struct iface##Vtbl FAR* lpVtbl; } iface; \
87 typedef struct iface##Vtbl iface##Vtbl; \
90 #define DECLARE_INTERFACE_(iface, baseiface) DECLARE_INTERFACE(iface)
92 #define BEGIN_INTERFACE
95 #endif /* __cplusplus && !CINTERFACE */
99 #endif /* __WINE_OBJBASE_H */