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(LPOLESTR filePathName,CLSID *pclsid);
40 /* These macros are msdev's way of defining COM objects. They are provided
41 * here for use by winelib users.
45 #define EXTERN_C extern "C"
47 #define EXTERN_C extern
50 #define STDMETHODCALLTYPE __stdcall
51 #define STDMETHODVCALLTYPE __cdecl
52 #define STDAPICALLTYPE __stdcall
53 #define STDAPIVCALLTYPE __cdecl
58 #define STDAPI EXTERN_C HRESULT STDAPICALLTYPE
59 #define STDAPI_(type) EXTERN_C type STDAPICALLTYPE
61 #define STDMETHODIMP HRESULT STDMETHODCALLTYPE
62 #define STDMETHODIMP_(type) type STDMETHODCALLTYPE
64 #define STDAPIV EXTERN_C HRESULT STDAPIVCALLTYPE
65 #define STDAPIV_(type) EXTERN_C type STDAPIVCALLTYPE
67 #define STDMETHODIMPV HRESULT STDMETHODVCALLTYPE
68 #define STDMETHODIMPV_(type) type STDMETHODVCALLTYPE
70 #define WINOLEAPI STDAPI
71 #define WINOLEAPI_(type) STDAPI_(type)
73 #if defined(__cplusplus) && !defined(CINTERFACE)
74 #define interface struct
75 #define STDMETHOD(method) virtual HRESULT STDMETHODCALLTYPE method
76 #define STDMETHOD_(type,method) virtual type STDMETHODCALLTYPE method
80 #define DECLARE_INTERFACE(iface) interface iface
81 #define DECLARE_INTERFACE_(iface, baseiface) interface iface : public baseiface
83 #define BEGIN_INTERFACE
88 #define interface struct
89 #define STDMETHOD(method) HRESULT STDMETHODCALLTYPE (*method)
90 #define STDMETHOD_(type,method) type STDMETHODCALLTYPE (*method)
92 #define THIS_ INTERFACE FAR* This,
93 #define THIS INTERFACE FAR* This
97 #define CONST_VTBL const
98 #define DECLARE_INTERFACE(iface) \
99 typedef interface iface { const struct iface##Vtbl FAR* lpVtbl; } iface; \
100 typedef const struct iface##Vtbl iface##Vtbl; \
101 const struct iface##Vtbl
105 #define DECLARE_INTERFACE(iface) \
106 typedef interface iface { struct iface##Vtbl FAR* lpVtbl; } iface; \
107 typedef struct iface##Vtbl iface##Vtbl; \
110 #define DECLARE_INTERFACE_(iface, baseiface) DECLARE_INTERFACE(iface)
112 #define BEGIN_INTERFACE
113 #define END_INTERFACE
117 #endif /* __WINE_OBJBASE_H */