Store USER icons and cursors as resources instead of xpm bitmaps.
[wine] / include / objbase.h
1 #ifndef __WINE_OBJBASE_H
2 #define __WINE_OBJBASE_H
3
4 #define _OBJBASE_H_
5
6 #include "unknwn.h"
7
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"
13
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"
18
19 /* the following depend on obj_moniker.h */
20 #include "wine/obj_dataobject.h"
21
22 #include "wine/obj_dragdrop.h"
23
24 #ifndef RC_INVOKED
25 /* For compatibility only, at least for now */
26 #include <stdlib.h>
27 #endif
28
29 #include "cguid.h"
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 HRESULT WINAPI GetClassFile(LPCOLESTR filePathName,CLSID *pclsid);
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #ifndef __WINE__
42 /* These macros are msdev's way of defining COM objects. 
43  * They are provided here for use by Winelib developpers.
44  */
45 #define FARSTRUCT
46 #define HUGEP
47
48 #define WINOLEAPI        STDAPI
49 #define WINOLEAPI_(type) STDAPI_(type)
50
51 #if defined(__cplusplus) && !defined(CINTERFACE)
52 #define interface struct
53 #define STDMETHOD(method)       virtual HRESULT STDMETHODCALLTYPE method
54 #define STDMETHOD_(type,method) virtual type STDMETHODCALLTYPE method
55 #define PURE                    = 0
56 #define THIS_
57 #define THIS                    void
58 #define DECLARE_INTERFACE(iface)    interface iface
59 #define DECLARE_INTERFACE_(iface, baseiface)    interface iface : public baseiface
60
61 #define BEGIN_INTERFACE
62 #define END_INTERFACE
63
64 #else
65
66 #define interface               struct
67 #define STDMETHOD(method)       HRESULT STDMETHODCALLTYPE (*method)
68 #define STDMETHOD_(type,method) type STDMETHODCALLTYPE (*method)
69 #define PURE
70 #define THIS_                   INTERFACE FAR* This,
71 #define THIS                    INTERFACE FAR* This
72
73 #ifdef CONST_VTABLE
74 #undef CONST_VTBL
75 #define CONST_VTBL const
76 #define DECLARE_INTERFACE(iface) \
77          typedef interface iface { const struct iface##Vtbl FAR* lpVtbl; } iface; \
78          typedef const struct iface##Vtbl iface##Vtbl; \
79          const struct iface##Vtbl
80 #else
81 #undef CONST_VTBL
82 #define CONST_VTBL
83 #define DECLARE_INTERFACE(iface) \
84          typedef interface iface { struct iface##Vtbl FAR* lpVtbl; } iface; \
85          typedef struct iface##Vtbl iface##Vtbl; \
86          struct iface##Vtbl
87 #endif
88 #define DECLARE_INTERFACE_(iface, baseiface)    DECLARE_INTERFACE(iface)
89
90 #define BEGIN_INTERFACE
91 #define END_INTERFACE
92
93 #endif /* __cplusplus && !CINTERFACE */
94
95 #endif /* __WINE__ */
96
97 #endif /* __WINE_OBJBASE_H */