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

模拟服务器

开发平台:

C/C++

  1. //-----------------------------------------------------------------------------
  2. // File: colinf.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(0c733a11-2a1c-11ce-ade5-00aa0044773d)
  14. interface IColumnsInfo : IUnknown {
  15. [local]
  16. HRESULT GetColumnInfo(
  17. [in, out] DBORDINAL * pcColumns,
  18. [out, size_is(,(ULONG)*pcColumns)] DBCOLUMNINFO ** prgInfo,
  19. [out] OLECHAR ** ppStringsBuffer
  20. );
  21. #ifndef NO_REMOTE
  22. [call_as(GetColumnInfo)]
  23. HRESULT RemoteGetColumnInfo(
  24. [in, out] DBORDINAL * pcColumns,
  25. [out, size_is(,(ULONG)*pcColumns)] DBCOLUMNINFO  ** prgInfo,
  26. [out, size_is(,(ULONG)*pcColumns)] DBBYTEOFFSET ** prgNameOffsets,
  27. [out, size_is(,(ULONG)*pcColumns)] DBBYTEOFFSET ** prgcolumnidOffsets,
  28. [in, out] DBLENGTH * pcbStringsBuffer,
  29. [in, out, unique, size_is(,(ULONG)*pcbStringsBuffer)] OLECHAR ** ppStringsBuffer,
  30. [out] IErrorInfo ** ppErrorInfoRem
  31. );
  32. #endif
  33. [local]
  34. HRESULT MapColumnIDs(
  35. [in] DBORDINAL cColumnIDs,
  36. [in, size_is((ULONG)cColumnIDs)] const DBID rgColumnIDs[],
  37. [out, size_is((ULONG)cColumnIDs)] DBORDINAL rgColumns[]
  38. );
  39. #ifndef NO_REMOTE
  40. [call_as(MapColumnIDs)]
  41. HRESULT RemoteMapColumnIDs(
  42. [in] DBORDINAL cColumnIDs,
  43. [in, size_is((ULONG)cColumnIDs)] const DBID *rgColumnIDs,
  44. [out, size_is((ULONG)cColumnIDs)] DBORDINAL *rgColumns,
  45. [out] IErrorInfo ** ppErrorInfoRem
  46. );
  47. #endif
  48. }