2007-08-10 18:41:48 +08:00
|
|
|
/**
|
|
|
|
* This file has no copyright assigned and is placed in the Public Domain.
|
2012-06-28 23:40:59 +08:00
|
|
|
* This file is part of the mingw-w64 runtime package.
|
2010-01-16 05:15:53 +08:00
|
|
|
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
2007-08-10 18:41:48 +08:00
|
|
|
*/
|
|
|
|
#ifndef I_SIMPDC_H_
|
|
|
|
#define I_SIMPDC_H_
|
|
|
|
|
|
|
|
#ifndef __REQUIRED_RPCNDR_H_VERSION__
|
|
|
|
#define __REQUIRED_RPCNDR_H_VERSION__ 440
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "rpc.h"
|
|
|
|
#include "rpcndr.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __ISimpleDataConverter_FWD_DEFINED__
|
|
|
|
#define __ISimpleDataConverter_FWD_DEFINED__
|
2007-11-19 23:18:40 +08:00
|
|
|
typedef struct ISimpleDataConverter ISimpleDataConverter;
|
2007-08-10 18:41:48 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "oaidl.h"
|
|
|
|
#include "ocidl.h"
|
|
|
|
|
2009-08-18 22:29:55 +08:00
|
|
|
#ifndef __MIDL_user_allocate_free_DEFINED__
|
|
|
|
#define __MIDL_user_allocate_free_DEFINED__
|
2007-08-10 18:41:48 +08:00
|
|
|
void *__RPC_API MIDL_user_allocate(size_t);
|
|
|
|
void __RPC_API MIDL_user_free(void *);
|
2009-08-18 22:29:55 +08:00
|
|
|
#endif
|
2007-08-10 18:41:48 +08:00
|
|
|
|
|
|
|
#ifndef __ISimpleDataConverter_INTERFACE_DEFINED__
|
|
|
|
#define __ISimpleDataConverter_INTERFACE_DEFINED__
|
|
|
|
DEFINE_GUID(IID_ISimpleDataConverter,0x78667670,0x3C3D,0x11d2,0x91,0xF9,0x00,0x60,0x97,0xC9,0x7F,0x9B);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
|
|
|
struct ISimpleDataConverter : public IUnknown {
|
|
|
|
public:
|
2012-08-06 23:48:01 +08:00
|
|
|
virtual HRESULT WINAPI ConvertData(VARIANT varSrc,__LONG32 vtDest,IUnknown *pUnknownElement,VARIANT *pvarDest) = 0;
|
|
|
|
virtual HRESULT WINAPI CanConvertData(__LONG32 vt1,__LONG32 vt2) = 0;
|
2007-08-10 18:41:48 +08:00
|
|
|
};
|
|
|
|
#else
|
|
|
|
typedef struct ISimpleDataConverterVtbl {
|
|
|
|
BEGIN_INTERFACE
|
|
|
|
HRESULT (WINAPI *QueryInterface)(ISimpleDataConverter *This,REFIID riid,void **ppvObject);
|
|
|
|
ULONG (WINAPI *AddRef)(ISimpleDataConverter *This);
|
|
|
|
ULONG (WINAPI *Release)(ISimpleDataConverter *This);
|
2012-08-06 23:48:01 +08:00
|
|
|
HRESULT (WINAPI *ConvertData)(ISimpleDataConverter *This,VARIANT varSrc,__LONG32 vtDest,IUnknown *pUnknownElement,VARIANT *pvarDest);
|
|
|
|
HRESULT (WINAPI *CanConvertData)(ISimpleDataConverter *This,__LONG32 vt1,__LONG32 vt2);
|
2007-08-10 18:41:48 +08:00
|
|
|
END_INTERFACE
|
|
|
|
} ISimpleDataConverterVtbl;
|
2007-11-19 23:18:40 +08:00
|
|
|
struct ISimpleDataConverter {
|
2007-08-10 18:41:48 +08:00
|
|
|
CONST_VTBL struct ISimpleDataConverterVtbl *lpVtbl;
|
|
|
|
};
|
|
|
|
#ifdef COBJMACROS
|
|
|
|
#define ISimpleDataConverter_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
|
|
|
|
#define ISimpleDataConverter_AddRef(This) (This)->lpVtbl->AddRef(This)
|
|
|
|
#define ISimpleDataConverter_Release(This) (This)->lpVtbl->Release(This)
|
|
|
|
#define ISimpleDataConverter_ConvertData(This,varSrc,vtDest,pUnknownElement,pvarDest) (This)->lpVtbl->ConvertData(This,varSrc,vtDest,pUnknownElement,pvarDest)
|
|
|
|
#define ISimpleDataConverter_CanConvertData(This,vt1,vt2) (This)->lpVtbl->CanConvertData(This,vt1,vt2)
|
|
|
|
#endif
|
|
|
|
#endif
|
2012-08-06 23:48:01 +08:00
|
|
|
HRESULT WINAPI ISimpleDataConverter_ConvertData_Proxy(ISimpleDataConverter *This,VARIANT varSrc,__LONG32 vtDest,IUnknown *pUnknownElement,VARIANT *pvarDest);
|
2007-08-10 18:41:48 +08:00
|
|
|
void __RPC_STUB ISimpleDataConverter_ConvertData_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
|
2012-08-06 23:48:01 +08:00
|
|
|
HRESULT WINAPI ISimpleDataConverter_CanConvertData_Proxy(ISimpleDataConverter *This,__LONG32 vt1,__LONG32 vt2);
|
2007-08-10 18:41:48 +08:00
|
|
|
void __RPC_STUB ISimpleDataConverter_CanConvertData_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|