Release 20010629.
[wine/multimedia.git] / include / objbase.h
bloba6d3312e40fd9b6af49b60d5c7e239c3a96bcce9
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_base.h"
10 #include "wine/obj_misc.h"
11 #include "wine/obj_channel.h"
12 #include "wine/obj_clientserver.h"
13 #include "wine/obj_storage.h"
15 /* the following depend on obj_storage.h */
16 #include "wine/obj_marshal.h"
17 #include "wine/obj_moniker.h"
18 #include "wine/obj_propertystorage.h"
20 /* the following depend on obj_moniker.h */
21 #include "wine/obj_dataobject.h"
23 #include "wine/obj_dragdrop.h"
25 #ifndef RC_INVOKED
26 /* For compatibility only, at least for now */
27 #include <stdlib.h>
28 #endif
30 #ifndef INITGUID
31 #include "cguid.h"
32 #endif
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
38 HRESULT WINAPI GetClassFile(LPCOLESTR filePathName,CLSID *pclsid);
40 #ifdef __cplusplus
42 #endif
44 #ifndef __WINE__
45 /* These macros are msdev's way of defining COM objects.
46 * They are provided here for use by Winelib developpers.
48 #define FARSTRUCT
49 #define HUGEP
51 #define WINOLEAPI STDAPI
52 #define WINOLEAPI_(type) STDAPI_(type)
54 #if defined(__cplusplus) && !defined(CINTERFACE)
55 #define interface struct
56 #define STDMETHOD(method) virtual HRESULT STDMETHODCALLTYPE method
57 #define STDMETHOD_(type,method) virtual type STDMETHODCALLTYPE method
58 #define PURE = 0
59 #define THIS_
60 #define THIS void
61 #define DECLARE_INTERFACE(iface) interface iface
62 #define DECLARE_INTERFACE_(iface, baseiface) interface iface : public baseiface
64 #define BEGIN_INTERFACE
65 #define END_INTERFACE
67 #else
69 #define interface struct
70 #define STDMETHOD(method) HRESULT STDMETHODCALLTYPE (*method)
71 #define STDMETHOD_(type,method) type STDMETHODCALLTYPE (*method)
72 #define PURE
73 #define THIS_ INTERFACE FAR* This,
74 #define THIS INTERFACE FAR* This
76 #ifdef CONST_VTABLE
77 #undef CONST_VTBL
78 #define CONST_VTBL const
79 #define DECLARE_INTERFACE(iface) \
80 typedef interface iface { const struct iface##Vtbl FAR* lpVtbl; } iface; \
81 typedef const struct iface##Vtbl iface##Vtbl; \
82 const struct iface##Vtbl
83 #else
84 #undef CONST_VTBL
85 #define CONST_VTBL
86 #define DECLARE_INTERFACE(iface) \
87 typedef interface iface { struct iface##Vtbl FAR* lpVtbl; } iface; \
88 typedef struct iface##Vtbl iface##Vtbl; \
89 struct iface##Vtbl
90 #endif
91 #define DECLARE_INTERFACE_(iface, baseiface) DECLARE_INTERFACE(iface)
93 #define BEGIN_INTERFACE
94 #define END_INTERFACE
96 #endif /* __cplusplus && !CINTERFACE */
98 #endif /* __WINE__ */
100 #endif /* __WINE_OBJBASE_H */