1 #ifndef __WINE_OBJBASE_H
2 #define __WINE_OBJBASE_H
5 #include "wine/obj_base.h"
7 /* the following depend only on obj_base.h */
8 #include "wine/obj_misc.h"
9 #include "wine/obj_channel.h"
10 #include "wine/obj_clientserver.h"
11 #include "wine/obj_storage.h"
13 /* the following depend on obj_storage.h */
14 #include "wine/obj_marshal.h"
15 #include "wine/obj_moniker.h"
16 #include "wine/obj_propertystorage.h"
18 /* the following depend on obj_moniker.h */
19 #include "wine/obj_dataobject.h"
21 #include "wine/obj_dragdrop.h"
28 #define EXTERN_C extern "C"
30 #define EXTERN_C extern
33 #define STDMETHODCALLTYPE __stdcall
34 #define STDMETHODVCALLTYPE __cdecl
35 #define STDAPICALLTYPE __stdcall
36 #define STDAPIVCALLTYPE __cdecl
38 #define STDAPI EXTERN_C HRESULT STDAPICALLTYPE
39 #define STDAPI_(type) EXTERN_C type STDAPICALLTYPE
41 #define STDMETHODIMP HRESULT STDMETHODCALLTYPE
42 #define STDMETHODIMP_(type) type STDMETHODCALLTYPE
45 #define STDAPIV EXTERN_C HRESULT STDAPIVCALLTYPE
46 #define STDAPIV_(type) EXTERN_C type STDAPIVCALLTYPE
48 #define STDMETHODIMPV HRESULT STDMETHODVCALLTYPE
49 #define STDMETHODIMPV_(type) type STDMETHODVCALLTYPE
51 #define WINOLEAPI STDAPI
52 #define WINOLEAPI_(type) STDAPI_(type)
54 #define BEGIN_INTERFACE
58 /* All of these will eventually need to go once headers in win_include are wynified. */
59 /* These macros are msdev's way of defining COM objects. */
61 #if defined(__cplusplus) && !defined(CINTERFACE)
62 #define interface struct
63 #define STDMETHOD(method) virtual HRESULT STDMETHODCALLTYPE method
64 #define STDMETHOD_(type,method) virtual type STDMETHODCALLTYPE method
68 #define DECLARE_INTERFACE(iface) interface iface
69 #define DECLARE_INTERFACE_(iface, baseiface) interface iface : public baseiface
72 #if !defined(BEGIN_INTERFACE)
73 #if defined(_MPPC_) && \
74 ( (defined(_MSC_VER) || defined(__SC__) || defined(__MWERKS__)) && \
75 !defined(NO_NULL_VTABLE_ENTRY) )
76 #define BEGIN_INTERFACE virtual void a() {}
79 #define BEGIN_INTERFACE
86 #define interface struct
88 #define STDMETHOD(method) HRESULT (STDMETHODCALLTYPE * method)
89 #define STDMETHOD_(type,method) type (STDMETHODCALLTYPE * method)
91 #if !defined(BEGIN_INTERFACE)
93 #define BEGIN_INTERFACE void *b;
96 #define BEGIN_INTERFACE
102 #define THIS_ INTERFACE FAR* This,
103 #define THIS INTERFACE FAR* This
106 #define CONST_VTBL const
107 #define DECLARE_INTERFACE(iface) typedef interface iface { \
108 const struct iface##Vtbl FAR* lpVtbl; \
110 typedef const struct iface##Vtbl iface##Vtbl; \
111 const struct iface##Vtbl
115 #define DECLARE_INTERFACE(iface) typedef interface iface { \
116 struct iface##Vtbl FAR* lpVtbl; \
118 typedef struct iface##Vtbl iface##Vtbl; \
121 #define DECLARE_INTERFACE_(iface, baseiface) DECLARE_INTERFACE(iface)
124 /* end MsDev's style, all of that must eventually go! */
125 #endif /* __LIBMFC__ */
129 }; /* extern "C" { */
132 #endif /* __WINE_OBJBASE_H */