source: trunk/include/win/objbase.h@ 4

Last change on this file since 4 was 4, checked in by ktk, 26 years ago

Import

File size: 3.0 KB
Line 
1/* $Id: objbase.h,v 1.1 1999-05-24 20:19:16 ktk Exp $ */
2
3#ifndef __WINE_OBJBASE_H
4#define __WINE_OBJBASE_H
5
6
7#include "wine/obj_base.h"
8
9/* the following depend only on 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
25HRESULT WINAPI GetClassFile(LPOLESTR filePathName,CLSID *pclsid);
26
27
28/* These macros are msdev's way of defining COM objects. They are provided
29 * here for use by winelib users.
30 */
31
32#ifdef __cplusplus
33 #define EXTERN_C extern "C"
34#else
35 #define EXTERN_C extern
36#endif
37
38#define STDMETHODCALLTYPE __stdcall
39#define STDMETHODVCALLTYPE __cdecl
40#define STDAPICALLTYPE __stdcall
41#define STDAPIVCALLTYPE __cdecl
42
43#define STDAPI EXTERN_C HRESULT STDAPICALLTYPE
44#define STDAPI_(type) EXTERN_C type STDAPICALLTYPE
45
46#define STDMETHODIMP HRESULT STDMETHODCALLTYPE
47#define STDMETHODIMP_(type) type STDMETHODCALLTYPE
48
49#define STDAPIV EXTERN_C HRESULT STDAPIVCALLTYPE
50#define STDAPIV_(type) EXTERN_C type STDAPIVCALLTYPE
51
52#define STDMETHODIMPV HRESULT STDMETHODVCALLTYPE
53#define STDMETHODIMPV_(type) type STDMETHODVCALLTYPE
54
55#define WINOLEAPI STDAPI
56#define WINOLEAPI_(type) STDAPI_(type)
57
58#if defined(__cplusplus) && !defined(CINTERFACE)
59#define interface struct
60#define STDMETHOD(method) virtual HRESULT STDMETHODCALLTYPE method
61#define STDMETHOD_(type,method) virtual type STDMETHODCALLTYPE method
62#define PURE = 0
63#define THIS_
64#define THIS void
65#define DECLARE_INTERFACE(iface) interface iface
66#define DECLARE_INTERFACE_(iface, baseiface) interface iface : public baseiface
67
68#define BEGIN_INTERFACE
69#define END_INTERFACE
70
71#else
72
73#define interface struct
74#define STDMETHOD(method) HRESULT (STDMETHODCALLTYPE * method)
75#define STDMETHOD_(type,method) type (STDMETHODCALLTYPE * method)
76#define PURE
77#define THIS_ INTERFACE FAR* This,
78#define THIS INTERFACE FAR* This
79
80#ifdef CONST_VTABLE
81#undef CONST_VTBL
82#define CONST_VTBL const
83#define DECLARE_INTERFACE(iface) \
84 typedef interface iface { const struct iface##Vtbl FAR* lpVtbl; } iface; \
85 typedef const struct iface##Vtbl iface##Vtbl; \
86 const struct iface##Vtbl
87#else
88#undef CONST_VTBL
89#define CONST_VTBL
90#define DECLARE_INTERFACE(iface) \
91 typedef interface iface { struct iface##Vtbl FAR* lpVtbl; } iface; \
92 typedef struct iface##Vtbl iface##Vtbl; \
93 struct iface##Vtbl
94#endif
95#define DECLARE_INTERFACE_(iface, baseiface) DECLARE_INTERFACE(iface)
96
97#define BEGIN_INTERFACE
98#define END_INTERFACE
99
100#endif
101
102#endif /* __WINE_OBJBASE_H */
Note: See TracBrowser for help on using the repository browser.