Removed check for union semun; cleaned up a bit.
[wine/multimedia.git] / include / objbase.h
blob0e15d8ac4a992de9b74d3638c57bf307726bd797
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);
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
29 #ifdef __cplusplus
30 #define EXTERN_C extern "C"
31 #else
32 #define EXTERN_C extern
33 #endif
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
57 #define END_INTERFACE
59 #ifdef __LIBMFC__
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
67 #define PURE = 0
68 #define THIS_
69 #define THIS void
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() {}
79 #define END_INTERFACE
80 #else
81 #define BEGIN_INTERFACE
82 #define END_INTERFACE
83 #endif
84 #endif
86 #else
88 #define interface struct
90 #define STDMETHOD(method) HRESULT (STDMETHODCALLTYPE * method)
91 #define STDMETHOD_(type,method) type (STDMETHODCALLTYPE * method)
93 #if !defined(BEGIN_INTERFACE)
94 #if defined(_MPPC_)
95 #define BEGIN_INTERFACE void *b;
96 #define END_INTERFACE
97 #else
98 #define BEGIN_INTERFACE
99 #define END_INTERFACE
100 #endif
101 #endif
103 #define PURE
104 #define THIS_ INTERFACE FAR* This,
105 #define THIS INTERFACE FAR* This
106 #ifdef CONST_VTABLE
107 #undef CONST_VTBL
108 #define CONST_VTBL const
109 #define DECLARE_INTERFACE(iface) typedef interface iface { \
110 const struct iface##Vtbl FAR* lpVtbl; \
111 } iface; \
112 typedef const struct iface##Vtbl iface##Vtbl; \
113 const struct iface##Vtbl
114 #else
115 #undef CONST_VTBL
116 #define CONST_VTBL
117 #define DECLARE_INTERFACE(iface) typedef interface iface { \
118 struct iface##Vtbl FAR* lpVtbl; \
119 } iface; \
120 typedef struct iface##Vtbl iface##Vtbl; \
121 struct iface##Vtbl
122 #endif
123 #define DECLARE_INTERFACE_(iface, baseiface) DECLARE_INTERFACE(iface)
125 #endif
126 /* end MsDev's style, all of that must eventually go! */
127 #endif /* __LIBMFC__ */
130 #ifdef __cplusplus
131 }; /* extern "C" { */
132 #endif
134 #endif /* __WINE_OBJBASE_H */