Commit 522ad6ad authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Converted to the new COM declaration 'standard' for better

compatibility with C code implementating that interface.
parent b9f85a77
......@@ -2,7 +2,7 @@
#define __WINE_SERVPROV_H
#include "unknwn.h"
#include "wine/obj_base.h"
/*****************************************************************************
......@@ -16,16 +16,19 @@ typedef struct IServiceProvider IServiceProvider,*LPSERVICEPROVIDER;
* IServiceProvider interface
*/
#define ICOM_INTERFACE IServiceProvider
ICOM_BEGIN(IServiceProvider,IUnknown)
ICOM_METHOD3(HRESULT,QueryService, REFGUID,guidService, REFIID,riid, void**,ppvObject);
ICOM_END(IServiceProvider)
#define IServiceProvider_METHODS \
ICOM_METHOD3(HRESULT,QueryService, REFGUID,guidService, REFIID,riid, void**,ppvObject)
#define IServiceProvider_IMETHODS \
IUnknown_IMETHODS \
IServiceProvider_METHODS
ICOM_DEFINE(IServiceProvider,IUnknown)
#undef ICOM_INTERFACE
#if !defined(__cplusplus) || defined(CINTERFACE)
#ifdef ICOM_CINTERFACE
/*** IUnknown methods ***/
#define IServiceProvider_QueryInterface(p,a,b) ICOM_ICALL2(IUnknown,QueryInterface,p,a,b)
#define IServiceProvider_AddRef(p) ICOM_ICALL (IUnknown,AddRef,p)
#define IServiceProvider_Release(p) ICOM_ICALL (IUnknown,Release,p)
#define IServiceProvider_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
#define IServiceProvider_AddRef(p) ICOM_CALL (AddRef,p)
#define IServiceProvider_Release(p) ICOM_CALL (Release,p)
/*** IServiceProvider methods ***/
#define IServiceProvider_QueryService(p,a,b,c) ICOM_CALL3(QueryService,p,a,b,c)
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment