Added command line tool to access the registry.
[wine/multimedia.git] / include / objbase.h
blobf927b9eb33d3b9a6bbdbed9c2c7f953415827573
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 #ifdef __cplusplus
24 extern "C" {
25 #endif
27 #ifdef __cplusplus
28 #define EXTERN_C extern "C"
29 #else
30 #define EXTERN_C extern
31 #endif
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
55 #define END_INTERFACE
57 #ifdef __LIBMFC__
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
65 #define PURE = 0
66 #define THIS_
67 #define THIS void
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() {}
77 #define END_INTERFACE
78 #else
79 #define BEGIN_INTERFACE
80 #define END_INTERFACE
81 #endif
82 #endif
84 #else
86 #define interface struct
88 #define STDMETHOD(method) HRESULT (STDMETHODCALLTYPE * method)
89 #define STDMETHOD_(type,method) type (STDMETHODCALLTYPE * method)
91 #if !defined(BEGIN_INTERFACE)
92 #if defined(_MPPC_)
93 #define BEGIN_INTERFACE void *b;
94 #define END_INTERFACE
95 #else
96 #define BEGIN_INTERFACE
97 #define END_INTERFACE
98 #endif
99 #endif
101 #define PURE
102 #define THIS_ INTERFACE FAR* This,
103 #define THIS INTERFACE FAR* This
104 #ifdef CONST_VTABLE
105 #undef CONST_VTBL
106 #define CONST_VTBL const
107 #define DECLARE_INTERFACE(iface) typedef interface iface { \
108 const struct iface##Vtbl FAR* lpVtbl; \
109 } iface; \
110 typedef const struct iface##Vtbl iface##Vtbl; \
111 const struct iface##Vtbl
112 #else
113 #undef CONST_VTBL
114 #define CONST_VTBL
115 #define DECLARE_INTERFACE(iface) typedef interface iface { \
116 struct iface##Vtbl FAR* lpVtbl; \
117 } iface; \
118 typedef struct iface##Vtbl iface##Vtbl; \
119 struct iface##Vtbl
120 #endif
121 #define DECLARE_INTERFACE_(iface, baseiface) DECLARE_INTERFACE(iface)
123 #endif
124 /* end MsDev's style, all of that must eventually go! */
125 #endif /* __LIBMFC__ */
128 #ifdef __cplusplus
129 }; /* extern "C" { */
130 #endif
132 #endif /* __WINE_OBJBASE_H */