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

模拟服务器

开发平台:

C/C++

  1. //-----------------------------------------------------------------------------
  2. // File: cmdwpr.idl
  3. //
  4. // Copyright: Copyright (c) Microsoft Corporation          
  5. //
  6. // Contents:  OLE DB interface definition
  7. //
  8. // Comments: 
  9. //
  10. //-----------------------------------------------------------------------------
  11. #include "idlmulti.h"
  12. //
  13.     REMOTED_INTERFACE(0c733a64-2a1c-11ce-ade5-00aa0044773d)
  14. interface ICommandWithParameters : IUnknown {
  15. typedef struct tagDBPARAMBINDINFO {
  16. LPOLESTR pwszDataSourceType;
  17. LPOLESTR pwszName;
  18. DBLENGTH ulParamSize;
  19. DBPARAMFLAGS dwFlags;
  20. BYTE bPrecision;
  21. BYTE bScale;
  22. } DBPARAMBINDINFO;
  23. [local]
  24. HRESULT GetParameterInfo(
  25.         [in, out] DB_UPARAMS * pcParams,
  26. [out, size_is(,*pcParams)] DBPARAMINFO ** prgParamInfo,
  27. [out] OLECHAR ** ppNamesBuffer
  28. );
  29. #ifndef NO_REMOTE
  30. [call_as(GetParameterInfo)]
  31. HRESULT RemoteGetParameterInfo(
  32. [in, out] DB_UPARAMS * pcParams,
  33. [out, size_is(,(ULONG)*pcParams)] DBPARAMINFO ** prgParamInfo,
  34. [out, size_is(,(ULONG)*pcParams)] DBBYTEOFFSET ** prgNameOffsets,
  35. [in, out] DBLENGTH * pcbNamesBuffer,
  36. [in, out, unique, size_is(,(ULONG)*pcbNamesBuffer)] OLECHAR ** ppNamesBuffer,
  37. [out] IErrorInfo ** ppErrorInfoRem
  38. );
  39. #endif
  40. [local]
  41. HRESULT MapParameterNames(
  42. [in] DB_UPARAMS cParamNames,
  43. [in, size_is((ULONG)cParamNames)] const OLECHAR * rgParamNames[],
  44. [out, size_is((ULONG)cParamNames)] DB_LPARAMS rgParamOrdinals[]
  45. );
  46. [call_as(MapParameterNames)]
  47. HRESULT RemoteMapParameterNames(
  48. [in] DB_UPARAMS cParamNames,
  49. [in, size_is((ULONG)cParamNames)] LPCOLESTR *rgParamNames,
  50. [out, size_is((ULONG)cParamNames)] DB_LPARAMS * rgParamOrdinals,
  51. [out] IErrorInfo ** ppErrorInfoRem
  52. );
  53. [local]
  54. HRESULT SetParameterInfo(
  55. [in] DB_UPARAMS cParams,
  56. [in, unique, size_is((ULONG)cParams)] const DB_UPARAMS rgParamOrdinals[],
  57. [in, unique, size_is((ULONG)cParams)] const DBPARAMBINDINFO rgParamBindInfo[]
  58. );
  59. [call_as(SetParameterInfo)]
  60. HRESULT RemoteSetParameterInfo(
  61. [in] DB_UPARAMS cParams,
  62. [in, unique, size_is((ULONG)cParams)] const DB_UPARAMS * rgParamOrdinals,
  63. [in, unique, size_is((ULONG)cParams)] const DBPARAMBINDINFO * rgParamBindInfo,
  64. [out] IErrorInfo ** ppErrorInfoRem
  65. );
  66. }