2002-03-10 00:29:33 +01:00
|
|
|
|
/*
|
|
|
|
|
* Copyright (C) 1998 Fran<EFBFBD>ois Gouget
|
|
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
*/
|
|
|
|
|
|
1998-12-18 17:00:03 +01:00
|
|
|
|
#ifndef __WINE_OBJBASE_H
|
|
|
|
|
#define __WINE_OBJBASE_H
|
|
|
|
|
|
1999-06-05 17:23:20 +02:00
|
|
|
|
#define _OBJBASE_H_
|
1998-12-18 17:00:03 +01:00
|
|
|
|
|
2000-11-15 23:12:48 +01:00
|
|
|
|
#include "unknwn.h"
|
1998-12-18 17:00:03 +01:00
|
|
|
|
|
1999-01-17 17:32:32 +01:00
|
|
|
|
/* the following depend only on obj_base.h */
|
2001-05-07 20:20:32 +02:00
|
|
|
|
#include "wine/obj_base.h"
|
1999-01-17 17:32:32 +01:00
|
|
|
|
#include "wine/obj_misc.h"
|
|
|
|
|
#include "wine/obj_channel.h"
|
|
|
|
|
#include "wine/obj_clientserver.h"
|
|
|
|
|
#include "wine/obj_storage.h"
|
1998-12-18 17:00:03 +01:00
|
|
|
|
|
1999-01-17 17:32:32 +01:00
|
|
|
|
/* the following depend on obj_storage.h */
|
1999-02-13 13:25:03 +01:00
|
|
|
|
#include "wine/obj_marshal.h"
|
1999-01-17 17:32:32 +01:00
|
|
|
|
#include "wine/obj_moniker.h"
|
|
|
|
|
#include "wine/obj_propertystorage.h"
|
1998-12-18 17:00:03 +01:00
|
|
|
|
|
1999-01-17 17:32:32 +01:00
|
|
|
|
/* the following depend on obj_moniker.h */
|
|
|
|
|
#include "wine/obj_dataobject.h"
|
1998-12-18 17:00:03 +01:00
|
|
|
|
|
1999-03-10 19:03:53 +01:00
|
|
|
|
#include "wine/obj_dragdrop.h"
|
|
|
|
|
|
2000-09-23 00:17:49 +02:00
|
|
|
|
#ifndef RC_INVOKED
|
|
|
|
|
/* For compatibility only, at least for now */
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
2001-04-12 23:10:54 +02:00
|
|
|
|
#ifndef INITGUID
|
2001-01-02 21:55:40 +01:00
|
|
|
|
#include "cguid.h"
|
2001-04-12 23:10:54 +02:00
|
|
|
|
#endif
|
2001-01-02 21:55:40 +01:00
|
|
|
|
|
2000-10-19 22:32:18 +02:00
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2000-12-15 22:29:41 +01:00
|
|
|
|
HRESULT WINAPI GetClassFile(LPCOLESTR filePathName,CLSID *pclsid);
|
1999-03-23 14:48:56 +01:00
|
|
|
|
|
2000-10-19 22:32:18 +02:00
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2000-12-19 03:09:52 +01:00
|
|
|
|
#ifndef __WINE__
|
2002-06-01 01:06:46 +02:00
|
|
|
|
/* These macros are msdev's way of defining COM objects.
|
2000-12-19 03:09:52 +01:00
|
|
|
|
* They are provided here for use by Winelib developpers.
|
1999-04-22 16:56:14 +02:00
|
|
|
|
*/
|
1999-06-05 17:23:20 +02:00
|
|
|
|
#define FARSTRUCT
|
|
|
|
|
#define HUGEP
|
|
|
|
|
|
1999-03-10 19:03:53 +01:00
|
|
|
|
#define WINOLEAPI STDAPI
|
|
|
|
|
#define WINOLEAPI_(type) STDAPI_(type)
|
|
|
|
|
|
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
|
|
|
|
#define interface struct
|
|
|
|
|
#define STDMETHOD(method) virtual HRESULT STDMETHODCALLTYPE method
|
|
|
|
|
#define STDMETHOD_(type,method) virtual type STDMETHODCALLTYPE method
|
|
|
|
|
#define PURE = 0
|
|
|
|
|
#define THIS_
|
|
|
|
|
#define THIS void
|
|
|
|
|
#define DECLARE_INTERFACE(iface) interface iface
|
|
|
|
|
#define DECLARE_INTERFACE_(iface, baseiface) interface iface : public baseiface
|
|
|
|
|
|
1999-04-22 16:56:14 +02:00
|
|
|
|
#define BEGIN_INTERFACE
|
|
|
|
|
#define END_INTERFACE
|
1999-03-10 19:03:53 +01:00
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
#define interface struct
|
2000-06-16 23:48:24 +02:00
|
|
|
|
#define STDMETHOD(method) HRESULT STDMETHODCALLTYPE (*method)
|
|
|
|
|
#define STDMETHOD_(type,method) type STDMETHODCALLTYPE (*method)
|
1999-03-10 19:03:53 +01:00
|
|
|
|
#define PURE
|
|
|
|
|
#define THIS_ INTERFACE FAR* This,
|
|
|
|
|
#define THIS INTERFACE FAR* This
|
1999-04-22 16:56:14 +02:00
|
|
|
|
|
1999-03-10 19:03:53 +01:00
|
|
|
|
#ifdef CONST_VTABLE
|
|
|
|
|
#undef CONST_VTBL
|
|
|
|
|
#define CONST_VTBL const
|
1999-04-22 16:56:14 +02:00
|
|
|
|
#define DECLARE_INTERFACE(iface) \
|
|
|
|
|
typedef interface iface { const struct iface##Vtbl FAR* lpVtbl; } iface; \
|
|
|
|
|
typedef const struct iface##Vtbl iface##Vtbl; \
|
|
|
|
|
const struct iface##Vtbl
|
1999-03-10 19:03:53 +01:00
|
|
|
|
#else
|
|
|
|
|
#undef CONST_VTBL
|
|
|
|
|
#define CONST_VTBL
|
1999-04-22 16:56:14 +02:00
|
|
|
|
#define DECLARE_INTERFACE(iface) \
|
|
|
|
|
typedef interface iface { struct iface##Vtbl FAR* lpVtbl; } iface; \
|
|
|
|
|
typedef struct iface##Vtbl iface##Vtbl; \
|
|
|
|
|
struct iface##Vtbl
|
1999-03-10 19:03:53 +01:00
|
|
|
|
#endif
|
|
|
|
|
#define DECLARE_INTERFACE_(iface, baseiface) DECLARE_INTERFACE(iface)
|
|
|
|
|
|
1999-04-22 16:56:14 +02:00
|
|
|
|
#define BEGIN_INTERFACE
|
|
|
|
|
#define END_INTERFACE
|
1999-03-10 19:03:53 +01:00
|
|
|
|
|
2000-12-19 03:09:52 +01:00
|
|
|
|
#endif /* __cplusplus && !CINTERFACE */
|
|
|
|
|
|
|
|
|
|
#endif /* __WINE__ */
|
1998-12-18 17:00:03 +01:00
|
|
|
|
|
|
|
|
|
#endif /* __WINE_OBJBASE_H */
|