Implemented processing for actions: SPI_GET/SETGRIDGRANULARITY,
[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_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"
14
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"
19
20 /* the following depend on obj_moniker.h */
21 #include "wine/obj_dataobject.h"
22
23 #include "wine/obj_dragdrop.h"
24
25 #ifndef RC_INVOKED
26 /* For compatibility only, at least for now */
27 #include <stdlib.h>
28 #endif
29
30 #ifndef INITGUID
31 #include "cguid.h"
32 #endif
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 HRESULT WINAPI GetClassFile(LPCOLESTR filePathName,CLSID *pclsid);
39
40 #ifdef __cplusplus
41 }
42 #endif
43
44 #ifndef __WINE__
45 /* These macros are msdev's way of defining COM objects. 
46  * They are provided here for use by Winelib developpers.
47  */
48 #define FARSTRUCT
49 #define HUGEP
50
51 #define WINOLEAPI        STDAPI
52 #define WINOLEAPI_(type) STDAPI_(type)
53
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
63
64 #define BEGIN_INTERFACE
65 #define END_INTERFACE
66
67 #else
68
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
75
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)
92
93 #define BEGIN_INTERFACE
94 #define END_INTERFACE
95
96 #endif /* __cplusplus && !CINTERFACE */
97
98 #endif /* __WINE__ */
99
100 #endif /* __WINE_OBJBASE_H */