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"
23 HRESULT WINAPI
GetClassFile(LPOLESTR filePathName
,CLSID
*pclsid
);
30 #define EXTERN_C extern "C"
32 #define EXTERN_C extern
35 #define STDMETHODCALLTYPE __stdcall
36 #define STDMETHODVCALLTYPE __cdecl
37 #define STDAPICALLTYPE __stdcall
38 #define STDAPIVCALLTYPE __cdecl
40 #define STDAPI EXTERN_C HRESULT STDAPICALLTYPE
41 #define STDAPI_(type) EXTERN_C type STDAPICALLTYPE
43 #define STDMETHODIMP HRESULT STDMETHODCALLTYPE
44 #define STDMETHODIMP_(type) type STDMETHODCALLTYPE
47 #define STDAPIV EXTERN_C HRESULT STDAPIVCALLTYPE
48 #define STDAPIV_(type) EXTERN_C type STDAPIVCALLTYPE
50 #define STDMETHODIMPV HRESULT STDMETHODVCALLTYPE
51 #define STDMETHODIMPV_(type) type STDMETHODVCALLTYPE
53 #define WINOLEAPI STDAPI
54 #define WINOLEAPI_(type) STDAPI_(type)
56 #define BEGIN_INTERFACE
60 /* All of these will eventually need to go once headers in win_include are wynified. */
61 /* These macros are msdev's way of defining COM objects. */
63 #if defined(__cplusplus) && !defined(CINTERFACE)
64 #define interface struct
65 #define STDMETHOD(method) virtual HRESULT STDMETHODCALLTYPE method
66 #define STDMETHOD_(type,method) virtual type STDMETHODCALLTYPE method
70 #define DECLARE_INTERFACE(iface) interface iface
71 #define DECLARE_INTERFACE_(iface, baseiface) interface iface : public baseiface
74 #if !defined(BEGIN_INTERFACE)
75 #if defined(_MPPC_) && \
76 ( (defined(_MSC_VER) || defined(__SC__) || defined(__MWERKS__)) && \
77 !defined(NO_NULL_VTABLE_ENTRY) )
78 #define BEGIN_INTERFACE virtual void a() {}
81 #define BEGIN_INTERFACE
88 #define interface struct
90 #define STDMETHOD(method) HRESULT (STDMETHODCALLTYPE * method)
91 #define STDMETHOD_(type,method) type (STDMETHODCALLTYPE * method)
93 #if !defined(BEGIN_INTERFACE)
95 #define BEGIN_INTERFACE void *b;
98 #define BEGIN_INTERFACE
104 #define THIS_ INTERFACE FAR* This,
105 #define THIS INTERFACE FAR* This
108 #define CONST_VTBL const
109 #define DECLARE_INTERFACE(iface) typedef interface iface { \
110 const struct iface##Vtbl FAR* lpVtbl; \
112 typedef const struct iface##Vtbl iface##Vtbl; \
113 const struct iface##Vtbl
117 #define DECLARE_INTERFACE(iface) typedef interface iface { \
118 struct iface##Vtbl FAR* lpVtbl; \
120 typedef struct iface##Vtbl iface##Vtbl; \
123 #define DECLARE_INTERFACE_(iface, baseiface) DECLARE_INTERFACE(iface)
126 /* end MsDev's style, all of that must eventually go! */
127 #endif /* __LIBMFC__ */
131 }; /* extern "C" { */
134 #endif /* __WINE_OBJBASE_H */