Replaced calls to KERNEL.Yield16 by calls to KERNEL32.K32WOWYield from
[wine.git] / include / objbase.h
blob88e04455cfcc05cbc4e3551203dd2d50b4ed64bc
1 #ifndef __WINE_OBJBASE_H
2 #define __WINE_OBJBASE_H
4 #define _OBJBASE_H_
6 #include "unknwn.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"
24 #ifndef RC_INVOKED
25 /* For compatibility only, at least for now */
26 #include <stdlib.h>
27 #endif
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
33 HRESULT WINAPI GetClassFile(LPCOLESTR filePathName,CLSID *pclsid);
35 #ifdef __cplusplus
37 #endif
39 #ifndef __WINE__
40 /* These macros are msdev's way of defining COM objects.
41 * They are provided here for use by Winelib developpers.
43 #define FARSTRUCT
44 #define HUGEP
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
53 #define PURE = 0
54 #define THIS_
55 #define THIS void
56 #define DECLARE_INTERFACE(iface) interface iface
57 #define DECLARE_INTERFACE_(iface, baseiface) interface iface : public baseiface
59 #define BEGIN_INTERFACE
60 #define END_INTERFACE
62 #else
64 #define interface struct
65 #define STDMETHOD(method) HRESULT STDMETHODCALLTYPE (*method)
66 #define STDMETHOD_(type,method) type STDMETHODCALLTYPE (*method)
67 #define PURE
68 #define THIS_ INTERFACE FAR* This,
69 #define THIS INTERFACE FAR* This
71 #ifdef CONST_VTABLE
72 #undef CONST_VTBL
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
78 #else
79 #undef CONST_VTBL
80 #define CONST_VTBL
81 #define DECLARE_INTERFACE(iface) \
82 typedef interface iface { struct iface##Vtbl FAR* lpVtbl; } iface; \
83 typedef struct iface##Vtbl iface##Vtbl; \
84 struct iface##Vtbl
85 #endif
86 #define DECLARE_INTERFACE_(iface, baseiface) DECLARE_INTERFACE(iface)
88 #define BEGIN_INTERFACE
89 #define END_INTERFACE
91 #endif /* __cplusplus && !CINTERFACE */
93 #endif /* __WINE__ */
95 #endif /* __WINE_OBJBASE_H */