MSDadc.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:13k
源码类别:

模拟服务器

开发平台:

C/C++

  1. #pragma warning( disable: 4049 )  /* more than 64k source lines */
  2. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  3.  /* File created by MIDL compiler version 6.00.0347 */
  4. /* Compiler settings for msdadc.idl:
  5.     Oicf, W1, Zp8, env=Win32 (32b run)
  6.     protocol : dce , ms_ext, c_ext
  7.     error checks: allocation ref bounds_check enum stub_data 
  8.     VC __declspec() decoration level: 
  9.          __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  10.          DECLSPEC_UUID(), MIDL_INTERFACE()
  11. */
  12. //@@MIDL_FILE_HEADING(  )
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __msdadc_h__
  27. #define __msdadc_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */ 
  32. #ifndef __IDataConvert_FWD_DEFINED__
  33. #define __IDataConvert_FWD_DEFINED__
  34. typedef interface IDataConvert IDataConvert;
  35. #endif  /* __IDataConvert_FWD_DEFINED__ */
  36. #ifndef __IDCInfo_FWD_DEFINED__
  37. #define __IDCInfo_FWD_DEFINED__
  38. typedef interface IDCInfo IDCInfo;
  39. #endif  /* __IDCInfo_FWD_DEFINED__ */
  40. /* header files for imported files */
  41. #include "oaidl.h"
  42. #include "ocidl.h"
  43. #include "oledb.h"
  44. #ifdef __cplusplus
  45. extern "C"{
  46. #endif 
  47. void * __RPC_USER MIDL_user_allocate(size_t);
  48. void __RPC_USER MIDL_user_free( void * ); 
  49. /* interface __MIDL_itf_msdadc_0000 */
  50. /* [local] */ 
  51. //-----------------------------------------------------------------------------
  52. // File: .C or .H file generated by msdadc.idl 
  53. //
  54. // Copyright: Copyright (c) 1998-1999 Microsoft Corporation
  55. //
  56. // Contents:  .C or .H file generated by msdadc.idl
  57. //
  58. // Comments: 
  59. //
  60. //-----------------------------------------------------------------------------
  61. #include <pshpack8.h> // 8-byte structure packing
  62. #undef OLEDBDECLSPEC
  63. #if _MSC_VER >= 1100
  64. #define OLEDBDECLSPEC __declspec(selectany)
  65. #else
  66. #define OLEDBDECLSPEC 
  67. #endif //_MSC_VER
  68. extern RPC_IF_HANDLE __MIDL_itf_msdadc_0000_v0_0_c_ifspec;
  69. extern RPC_IF_HANDLE __MIDL_itf_msdadc_0000_v0_0_s_ifspec;
  70. #ifndef __IDataConvert_INTERFACE_DEFINED__
  71. #define __IDataConvert_INTERFACE_DEFINED__
  72. /* interface IDataConvert */
  73. /* [unique][helpstring][uuid][object] */ 
  74. typedef DWORD DBDATACONVERT;
  75. enum DBDATACONVERTENUM
  76.     { DBDATACONVERT_DEFAULT = 0,
  77. DBDATACONVERT_SETDATABEHAVIOR = 0x1,
  78. DBDATACONVERT_LENGTHFROMNTS = 0x2,
  79. DBDATACONVERT_DSTISFIXEDLENGTH = 0x4,
  80. DBDATACONVERT_DECIMALSCALE = 0x8
  81.     } ;
  82. EXTERN_C const IID IID_IDataConvert;
  83. #if defined(__cplusplus) && !defined(CINTERFACE)
  84.     
  85.     MIDL_INTERFACE("0c733a8d-2a1c-11ce-ade5-00aa0044773d")
  86.     IDataConvert : public IUnknown
  87.     {
  88.     public:
  89.         virtual /* [local] */ HRESULT STDMETHODCALLTYPE DataConvert( 
  90.             /* [in] */ DBTYPE wSrcType,
  91.             /* [in] */ DBTYPE wDstType,
  92.             /* [in] */ DBLENGTH cbSrcLength,
  93.             /* [out][in] */ DBLENGTH *pcbDstLength,
  94.             /* [in] */ void *pSrc,
  95.             /* [out] */ void *pDst,
  96.             /* [in] */ DBLENGTH cbDstMaxLength,
  97.             /* [in] */ DBSTATUS dbsSrcStatus,
  98.             /* [out] */ DBSTATUS *pdbsStatus,
  99.             /* [in] */ BYTE bPrecision,
  100.             /* [in] */ BYTE bScale,
  101.             /* [in] */ DBDATACONVERT dwFlags) = 0;
  102.         
  103.         virtual HRESULT STDMETHODCALLTYPE CanConvert( 
  104.             /* [in] */ DBTYPE wSrcType,
  105.             /* [in] */ DBTYPE wDstType) = 0;
  106.         
  107.         virtual /* [local] */ HRESULT STDMETHODCALLTYPE GetConversionSize( 
  108.             /* [in] */ DBTYPE wSrcType,
  109.             /* [in] */ DBTYPE wDstType,
  110.             /* [in] */ DBLENGTH *pcbSrcLength,
  111.             /* [out] */ DBLENGTH *pcbDstLength,
  112.             /* [size_is][in] */ void *pSrc) = 0;
  113.         
  114.     };
  115.     
  116. #else  /* C style interface */
  117.     typedef struct IDataConvertVtbl
  118.     {
  119.         BEGIN_INTERFACE
  120.         
  121.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  122.             IDataConvert * This,
  123.             /* [in] */ REFIID riid,
  124.             /* [iid_is][out] */ void **ppvObject);
  125.         
  126.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  127.             IDataConvert * This);
  128.         
  129.         ULONG ( STDMETHODCALLTYPE *Release )( 
  130.             IDataConvert * This);
  131.         
  132.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *DataConvert )( 
  133.             IDataConvert * This,
  134.             /* [in] */ DBTYPE wSrcType,
  135.             /* [in] */ DBTYPE wDstType,
  136.             /* [in] */ DBLENGTH cbSrcLength,
  137.             /* [out][in] */ DBLENGTH *pcbDstLength,
  138.             /* [in] */ void *pSrc,
  139.             /* [out] */ void *pDst,
  140.             /* [in] */ DBLENGTH cbDstMaxLength,
  141.             /* [in] */ DBSTATUS dbsSrcStatus,
  142.             /* [out] */ DBSTATUS *pdbsStatus,
  143.             /* [in] */ BYTE bPrecision,
  144.             /* [in] */ BYTE bScale,
  145.             /* [in] */ DBDATACONVERT dwFlags);
  146.         
  147.         HRESULT ( STDMETHODCALLTYPE *CanConvert )( 
  148.             IDataConvert * This,
  149.             /* [in] */ DBTYPE wSrcType,
  150.             /* [in] */ DBTYPE wDstType);
  151.         
  152.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetConversionSize )( 
  153.             IDataConvert * This,
  154.             /* [in] */ DBTYPE wSrcType,
  155.             /* [in] */ DBTYPE wDstType,
  156.             /* [in] */ DBLENGTH *pcbSrcLength,
  157.             /* [out] */ DBLENGTH *pcbDstLength,
  158.             /* [size_is][in] */ void *pSrc);
  159.         
  160.         END_INTERFACE
  161.     } IDataConvertVtbl;
  162.     interface IDataConvert
  163.     {
  164.         CONST_VTBL struct IDataConvertVtbl *lpVtbl;
  165.     };
  166.     
  167. #ifdef COBJMACROS
  168. #define IDataConvert_QueryInterface(This,riid,ppvObject)
  169.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  170. #define IDataConvert_AddRef(This)
  171.     (This)->lpVtbl -> AddRef(This)
  172. #define IDataConvert_Release(This)
  173.     (This)->lpVtbl -> Release(This)
  174. #define IDataConvert_DataConvert(This,wSrcType,wDstType,cbSrcLength,pcbDstLength,pSrc,pDst,cbDstMaxLength,dbsSrcStatus,pdbsStatus,bPrecision,bScale,dwFlags)
  175.     (This)->lpVtbl -> DataConvert(This,wSrcType,wDstType,cbSrcLength,pcbDstLength,pSrc,pDst,cbDstMaxLength,dbsSrcStatus,pdbsStatus,bPrecision,bScale,dwFlags)
  176. #define IDataConvert_CanConvert(This,wSrcType,wDstType)
  177.     (This)->lpVtbl -> CanConvert(This,wSrcType,wDstType)
  178. #define IDataConvert_GetConversionSize(This,wSrcType,wDstType,pcbSrcLength,pcbDstLength,pSrc)
  179.     (This)->lpVtbl -> GetConversionSize(This,wSrcType,wDstType,pcbSrcLength,pcbDstLength,pSrc)
  180. #endif /* COBJMACROS */
  181. #endif  /* C style interface */
  182. /* [local] */ HRESULT STDMETHODCALLTYPE IDataConvert_DataConvert_Proxy( 
  183.     IDataConvert * This,
  184.     /* [in] */ DBTYPE wSrcType,
  185.     /* [in] */ DBTYPE wDstType,
  186.     /* [in] */ DBLENGTH cbSrcLength,
  187.     /* [out][in] */ DBLENGTH *pcbDstLength,
  188.     /* [in] */ void *pSrc,
  189.     /* [out] */ void *pDst,
  190.     /* [in] */ DBLENGTH cbDstMaxLength,
  191.     /* [in] */ DBSTATUS dbsSrcStatus,
  192.     /* [out] */ DBSTATUS *pdbsStatus,
  193.     /* [in] */ BYTE bPrecision,
  194.     /* [in] */ BYTE bScale,
  195.     /* [in] */ DBDATACONVERT dwFlags);
  196. void __RPC_STUB IDataConvert_DataConvert_Stub(
  197.     IRpcStubBuffer *This,
  198.     IRpcChannelBuffer *_pRpcChannelBuffer,
  199.     PRPC_MESSAGE _pRpcMessage,
  200.     DWORD *_pdwStubPhase);
  201. HRESULT STDMETHODCALLTYPE IDataConvert_CanConvert_Proxy( 
  202.     IDataConvert * This,
  203.     /* [in] */ DBTYPE wSrcType,
  204.     /* [in] */ DBTYPE wDstType);
  205. void __RPC_STUB IDataConvert_CanConvert_Stub(
  206.     IRpcStubBuffer *This,
  207.     IRpcChannelBuffer *_pRpcChannelBuffer,
  208.     PRPC_MESSAGE _pRpcMessage,
  209.     DWORD *_pdwStubPhase);
  210. /* [local] */ HRESULT STDMETHODCALLTYPE IDataConvert_GetConversionSize_Proxy( 
  211.     IDataConvert * This,
  212.     /* [in] */ DBTYPE wSrcType,
  213.     /* [in] */ DBTYPE wDstType,
  214.     /* [in] */ DBLENGTH *pcbSrcLength,
  215.     /* [out] */ DBLENGTH *pcbDstLength,
  216.     /* [size_is][in] */ void *pSrc);
  217. void __RPC_STUB IDataConvert_GetConversionSize_Stub(
  218.     IRpcStubBuffer *This,
  219.     IRpcChannelBuffer *_pRpcChannelBuffer,
  220.     PRPC_MESSAGE _pRpcMessage,
  221.     DWORD *_pdwStubPhase);
  222. #endif  /* __IDataConvert_INTERFACE_DEFINED__ */
  223. #ifndef __IDCInfo_INTERFACE_DEFINED__
  224. #define __IDCInfo_INTERFACE_DEFINED__
  225. /* interface IDCInfo */
  226. /* [unique][helpstring][uuid][object] */ 
  227. typedef DWORD DCINFOTYPE;
  228. enum DCINFOTYPEENUM
  229.     { DCINFOTYPE_VERSION = 1
  230.     } ;
  231. typedef struct tagDCINFO
  232.     {
  233.     DCINFOTYPE eInfoType;
  234.     VARIANT vData;
  235.     }  DCINFO;
  236. EXTERN_C const IID IID_IDCInfo;
  237. #if defined(__cplusplus) && !defined(CINTERFACE)
  238.     
  239.     MIDL_INTERFACE("0c733a9c-2a1c-11ce-ade5-00aa0044773d")
  240.     IDCInfo : public IUnknown
  241.     {
  242.     public:
  243.         virtual HRESULT STDMETHODCALLTYPE GetInfo( 
  244.             /* [in] */ ULONG cInfo,
  245.             /* [size_is][in] */ DCINFOTYPE rgeInfoType[  ],
  246.             /* [size_is][out] */ DCINFO **prgInfo) = 0;
  247.         
  248.         virtual HRESULT STDMETHODCALLTYPE SetInfo( 
  249.             /* [in] */ ULONG cInfo,
  250.             /* [size_is][in] */ DCINFO rgInfo[  ]) = 0;
  251.         
  252.     };
  253.     
  254. #else  /* C style interface */
  255.     typedef struct IDCInfoVtbl
  256.     {
  257.         BEGIN_INTERFACE
  258.         
  259.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  260.             IDCInfo * This,
  261.             /* [in] */ REFIID riid,
  262.             /* [iid_is][out] */ void **ppvObject);
  263.         
  264.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  265.             IDCInfo * This);
  266.         
  267.         ULONG ( STDMETHODCALLTYPE *Release )( 
  268.             IDCInfo * This);
  269.         
  270.         HRESULT ( STDMETHODCALLTYPE *GetInfo )( 
  271.             IDCInfo * This,
  272.             /* [in] */ ULONG cInfo,
  273.             /* [size_is][in] */ DCINFOTYPE rgeInfoType[  ],
  274.             /* [size_is][out] */ DCINFO **prgInfo);
  275.         
  276.         HRESULT ( STDMETHODCALLTYPE *SetInfo )( 
  277.             IDCInfo * This,
  278.             /* [in] */ ULONG cInfo,
  279.             /* [size_is][in] */ DCINFO rgInfo[  ]);
  280.         
  281.         END_INTERFACE
  282.     } IDCInfoVtbl;
  283.     interface IDCInfo
  284.     {
  285.         CONST_VTBL struct IDCInfoVtbl *lpVtbl;
  286.     };
  287.     
  288. #ifdef COBJMACROS
  289. #define IDCInfo_QueryInterface(This,riid,ppvObject)
  290.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  291. #define IDCInfo_AddRef(This)
  292.     (This)->lpVtbl -> AddRef(This)
  293. #define IDCInfo_Release(This)
  294.     (This)->lpVtbl -> Release(This)
  295. #define IDCInfo_GetInfo(This,cInfo,rgeInfoType,prgInfo)
  296.     (This)->lpVtbl -> GetInfo(This,cInfo,rgeInfoType,prgInfo)
  297. #define IDCInfo_SetInfo(This,cInfo,rgInfo)
  298.     (This)->lpVtbl -> SetInfo(This,cInfo,rgInfo)
  299. #endif /* COBJMACROS */
  300. #endif  /* C style interface */
  301. HRESULT STDMETHODCALLTYPE IDCInfo_GetInfo_Proxy( 
  302.     IDCInfo * This,
  303.     /* [in] */ ULONG cInfo,
  304.     /* [size_is][in] */ DCINFOTYPE rgeInfoType[  ],
  305.     /* [size_is][out] */ DCINFO **prgInfo);
  306. void __RPC_STUB IDCInfo_GetInfo_Stub(
  307.     IRpcStubBuffer *This,
  308.     IRpcChannelBuffer *_pRpcChannelBuffer,
  309.     PRPC_MESSAGE _pRpcMessage,
  310.     DWORD *_pdwStubPhase);
  311. HRESULT STDMETHODCALLTYPE IDCInfo_SetInfo_Proxy( 
  312.     IDCInfo * This,
  313.     /* [in] */ ULONG cInfo,
  314.     /* [size_is][in] */ DCINFO rgInfo[  ]);
  315. void __RPC_STUB IDCInfo_SetInfo_Stub(
  316.     IRpcStubBuffer *This,
  317.     IRpcChannelBuffer *_pRpcChannelBuffer,
  318.     PRPC_MESSAGE _pRpcMessage,
  319.     DWORD *_pdwStubPhase);
  320. #endif  /* __IDCInfo_INTERFACE_DEFINED__ */
  321. /* interface __MIDL_itf_msdadc_0354 */
  322. /* [local] */ 
  323. extern const GUID OLEDBDECLSPEC IID_IDataConvert = { 0x0c733a8dL,0x2a1c,0x11ce, { 0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d } };
  324. extern const GUID OLEDBDECLSPEC IID_IDCInfo = { 0x0c733a9cL,0x2a1c,0x11ce, { 0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d } };
  325. #include <poppack.h>     // restore original structure packing
  326. extern RPC_IF_HANDLE __MIDL_itf_msdadc_0354_v0_0_c_ifspec;
  327. extern RPC_IF_HANDLE __MIDL_itf_msdadc_0354_v0_0_s_ifspec;
  328. /* Additional Prototypes for ALL interfaces */
  329. unsigned long             __RPC_USER  VARIANT_UserSize(     unsigned long *, unsigned long            , VARIANT * ); 
  330. unsigned char * __RPC_USER  VARIANT_UserMarshal(  unsigned long *, unsigned char *, VARIANT * ); 
  331. unsigned char * __RPC_USER  VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT * ); 
  332. void                      __RPC_USER  VARIANT_UserFree(     unsigned long *, VARIANT * ); 
  333. /* end of Additional Prototypes */
  334. #ifdef __cplusplus
  335. }
  336. #endif
  337. #endif