2000-08-03 06:34:59 +02:00
|
|
|
/*
|
|
|
|
* Defines the COM interfaces and APIs related to ErrorInfo
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* Copyright (C) 2000 Juergen Schmied
|
|
|
|
*
|
|
|
|
* 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
|
2000-08-03 06:34:59 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_WINE_OBJ_ERRORINFO_H
|
|
|
|
#define __WINE_WINE_OBJ_ERRORINFO_H
|
|
|
|
|
|
|
|
DEFINE_GUID(IID_IErrorInfo,0x1CF2B120,0x547D,0x101B,0x8E,0x65,0x08,0x00,0x2B,0x2B,0xD1,0x19);
|
|
|
|
typedef struct IErrorInfo IErrorInfo,*LPERRORINFO;
|
|
|
|
|
|
|
|
DEFINE_GUID(IID_ICreateErrorInfo,0x22F03340,0x547D,0x101B,0x8E,0x65,0x08,0x00,0x2B,0x2B,0xD1,0x19);
|
|
|
|
typedef struct ICreateErrorInfo ICreateErrorInfo,*LPCREATEERRORINFO;
|
|
|
|
|
|
|
|
DEFINE_GUID(IID_ISupportErrorInfo,0xDF0B3D60,0x547D,0x101B,0x8E,0x65,0x08,0x00,0x2B,0x2B,0xD1,0x19);
|
|
|
|
typedef struct ISupportErrorInfo ISupportErrorInfo,*LPSUPPORTERRORINFO;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IErrorInfo
|
|
|
|
*/
|
|
|
|
#define ICOM_INTERFACE IErrorInfo
|
|
|
|
#define IErrorInfo_METHODS \
|
2000-09-23 00:07:53 +02:00
|
|
|
ICOM_METHOD1(HRESULT, GetGUID, GUID * , pGUID) \
|
2000-08-03 06:34:59 +02:00
|
|
|
ICOM_METHOD1(HRESULT, GetSource, BSTR* ,pBstrSource) \
|
|
|
|
ICOM_METHOD1(HRESULT, GetDescription, BSTR*, pBstrDescription) \
|
|
|
|
ICOM_METHOD1(HRESULT, GetHelpFile, BSTR*, pBstrHelpFile) \
|
|
|
|
ICOM_METHOD1(HRESULT, GetHelpContext, DWORD*, pdwHelpContext)
|
2000-09-23 00:07:53 +02:00
|
|
|
|
2000-08-03 06:34:59 +02:00
|
|
|
#define IErrorInfo_IMETHODS \
|
|
|
|
IUnknown_IMETHODS \
|
|
|
|
IErrorInfo_METHODS
|
2000-09-23 00:07:53 +02:00
|
|
|
ICOM_DEFINE(IErrorInfo, IUnknown)
|
2000-08-03 06:34:59 +02:00
|
|
|
#undef ICOM_INTERFACE
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IErrorInfo_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|
|
|
#define IErrorInfo_AddRef(p) ICOM_CALL (AddRef,p)
|
|
|
|
#define IErrorInfo_Release(p) ICOM_CALL (Release,p)
|
|
|
|
/*** IErrorInfo methods ***/
|
|
|
|
#define IErrorInfo_GetGUID(p,a) ICOM_CALL1 (GetGUID,p,a)
|
|
|
|
#define IErrorInfo_GetSource(p,a) ICOM_CALL1 (GetSource,p,a)
|
|
|
|
#define IErrorInfo_GetDescription(p,a) ICOM_CALL1 (GetDescription,p,a)
|
|
|
|
#define IErrorInfo_GetHelpFile(p,a) ICOM_CALL1 (GetHelpFile,p,a)
|
|
|
|
#define IErrorInfo_GetHelpContext(p,a) ICOM_CALL1 (GetHelpContext,p,a)
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* ICreateErrorInfo
|
|
|
|
*/
|
|
|
|
#define ICOM_INTERFACE ICreateErrorInfo
|
|
|
|
#define ICreateErrorInfo_METHODS \
|
|
|
|
ICOM_METHOD1(HRESULT, SetGUID, REFGUID, rguid) \
|
|
|
|
ICOM_METHOD1(HRESULT, SetSource, LPOLESTR, szSource) \
|
|
|
|
ICOM_METHOD1(HRESULT, SetDescription, LPOLESTR, szDescription) \
|
|
|
|
ICOM_METHOD1(HRESULT, SetHelpFile, LPOLESTR, szHelpFile) \
|
|
|
|
ICOM_METHOD1(HRESULT, SetHelpContext, DWORD, dwHelpContext)
|
2000-09-23 00:07:53 +02:00
|
|
|
|
2000-08-03 06:34:59 +02:00
|
|
|
#define ICreateErrorInfo_IMETHODS \
|
|
|
|
IUnknown_IMETHODS \
|
|
|
|
ICreateErrorInfo_METHODS
|
2000-09-23 00:07:53 +02:00
|
|
|
ICOM_DEFINE(ICreateErrorInfo, IUnknown)
|
2000-08-03 06:34:59 +02:00
|
|
|
#undef ICOM_INTERFACE
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define ICreateErrorInfo_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|
|
|
#define ICreateErrorInfo_AddRef(p) ICOM_CALL (AddRef,p)
|
|
|
|
#define ICreateErrorInfo_Release(p) ICOM_CALL (Release,p)
|
|
|
|
/*** ICreateErrorInfo methods ***/
|
|
|
|
#define ICreateErrorInfo_SetGUID(p,a) ICOM_CALL1 (SetGUID,p,a)
|
|
|
|
#define ICreateErrorInfo_SetSource(p,a) ICOM_CALL1 (SetSource,p,a)
|
|
|
|
#define ICreateErrorInfo_SetDescription(p,a) ICOM_CALL1 (SetDescription,p,a)
|
|
|
|
#define ICreateErrorInfo_SetHelpFile(p,a) ICOM_CALL1 (SetHelpFile,p,a)
|
|
|
|
#define ICreateErrorInfo_SetHelpContext(p,a) ICOM_CALL1 (SetHelpContext,p,a)
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* ISupportErrorInfo
|
|
|
|
*/
|
|
|
|
#define ICOM_INTERFACE ISupportErrorInfo
|
|
|
|
#define ISupportErrorInfo_METHODS \
|
|
|
|
ICOM_METHOD1(HRESULT, InterfaceSupportsErrorInfo, REFIID, riid )
|
2000-09-23 00:07:53 +02:00
|
|
|
|
2000-08-03 06:34:59 +02:00
|
|
|
#define ISupportErrorInfo_IMETHODS \
|
|
|
|
IUnknown_IMETHODS \
|
|
|
|
ISupportErrorInfo_METHODS
|
2000-09-23 00:07:53 +02:00
|
|
|
ICOM_DEFINE(ISupportErrorInfo, IUnknown)
|
2000-08-03 06:34:59 +02:00
|
|
|
#undef ICOM_INTERFACE
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define ISupportErrorInfo_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|
|
|
#define ISupportErrorInfo_AddRef(p) ICOM_CALL (AddRef,p)
|
|
|
|
#define ISupportErrorInfo_Release(p) ICOM_CALL (Release,p)
|
|
|
|
/*** ISupportErrorInfo methods ***/
|
|
|
|
#define ISupportErrorInfo_InterfaceSupportsErrorInfo(p,a) ICOM_CALL1 (InterfaceSupportsErrorInfo,p,a)
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __WINE_WINE_OBJ_ERRORINFO_H */
|