Moved all Win16 definitions out of the standard Windows headers.
[wine] / include / objbase.h
1 #ifndef __WINE_OBJBASE_H
2 #define __WINE_OBJBASE_H
3
4 #define _OBJBASE_H_
5
6 #include "wine/obj_base.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 HRESULT WINAPI GetClassFile(LPOLESTR filePathName,CLSID *pclsid);
30
31
32 /*    These macros are msdev's way of defining COM objects. They are provided 
33  * here for use by winelib users.
34  */
35
36 #ifdef __cplusplus
37     #define EXTERN_C    extern "C"
38 #else
39     #define EXTERN_C    extern
40 #endif
41
42 #define STDMETHODCALLTYPE       __stdcall
43 #define STDMETHODVCALLTYPE      __cdecl
44 #define STDAPICALLTYPE          __stdcall
45 #define STDAPIVCALLTYPE         __cdecl
46
47 #define FARSTRUCT
48 #define HUGEP
49
50 #define STDAPI                  EXTERN_C HRESULT STDAPICALLTYPE
51 #define STDAPI_(type)           EXTERN_C type STDAPICALLTYPE
52
53 #define STDMETHODIMP            HRESULT STDMETHODCALLTYPE
54 #define STDMETHODIMP_(type)     type STDMETHODCALLTYPE
55
56 #define STDAPIV                 EXTERN_C HRESULT STDAPIVCALLTYPE
57 #define STDAPIV_(type)          EXTERN_C type STDAPIVCALLTYPE
58
59 #define STDMETHODIMPV           HRESULT STDMETHODVCALLTYPE
60 #define STDMETHODIMPV_(type)    type STDMETHODVCALLTYPE
61
62 #define WINOLEAPI        STDAPI
63 #define WINOLEAPI_(type) STDAPI_(type)
64
65 #if defined(__cplusplus) && !defined(CINTERFACE)
66 #define interface struct
67 #define STDMETHOD(method)       virtual HRESULT STDMETHODCALLTYPE method
68 #define STDMETHOD_(type,method) virtual type STDMETHODCALLTYPE method
69 #define PURE                    = 0
70 #define THIS_
71 #define THIS                    void
72 #define DECLARE_INTERFACE(iface)    interface iface
73 #define DECLARE_INTERFACE_(iface, baseiface)    interface iface : public baseiface
74
75 #define BEGIN_INTERFACE
76 #define END_INTERFACE
77
78 #else
79
80 #define interface               struct
81 #define STDMETHOD(method)       HRESULT STDMETHODCALLTYPE (*method)
82 #define STDMETHOD_(type,method) type STDMETHODCALLTYPE (*method)
83 #define PURE
84 #define THIS_                   INTERFACE FAR* This,
85 #define THIS                    INTERFACE FAR* This
86
87 #ifdef CONST_VTABLE
88 #undef CONST_VTBL
89 #define CONST_VTBL const
90 #define DECLARE_INTERFACE(iface) \
91          typedef interface iface { const struct iface##Vtbl FAR* lpVtbl; } iface; \
92          typedef const struct iface##Vtbl iface##Vtbl; \
93          const struct iface##Vtbl
94 #else
95 #undef CONST_VTBL
96 #define CONST_VTBL
97 #define DECLARE_INTERFACE(iface) \
98          typedef interface iface { struct iface##Vtbl FAR* lpVtbl; } iface; \
99          typedef struct iface##Vtbl iface##Vtbl; \
100          struct iface##Vtbl
101 #endif
102 #define DECLARE_INTERFACE_(iface, baseiface)    DECLARE_INTERFACE(iface)
103
104 #define BEGIN_INTERFACE
105 #define END_INTERFACE
106
107 #endif
108
109 #endif /* __WINE_OBJBASE_H */