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

模拟服务器

开发平台:

C/C++

  1. //-----------------------------------------------------------------------------
  2. // File: dbdsad.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(0c733a7a-2a1c-11ce-ade5-00aa0044773d)
  14. interface IDBDataSourceAdmin : IUnknown {
  15. [local]
  16. HRESULT CreateDataSource(
  17. [in] ULONG cPropertySets,
  18. [in, out, size_is(cPropertySets)] DBPROPSET rgPropertySets[],
  19. [in] IUnknown * pUnkOuter,
  20. [in] REFIID riid,
  21. [out, iid_is(riid)] IUnknown ** ppDBSession
  22. );
  23. [call_as(CreateDataSource)]
  24. HRESULT RemoteCreateDataSource(
  25. [in] ULONG cPropertySets,
  26. [in, unique, size_is(cPropertySets)] DBPROPSET * rgPropertySets,
  27. [in] IUnknown * pUnkOuter,
  28. [in] REFIID riid,
  29. [in, out, unique, iid_is(riid)] IUnknown ** ppDBSession,
  30. [in] ULONG cTotalProps,
  31. [out, size_is(cTotalProps)] DBPROPSTATUS * rgPropStatus,
  32. [out] IErrorInfo ** ppErrorInfoRem
  33. );
  34. [local]
  35. HRESULT DestroyDataSource(
  36. );
  37. [call_as(DestroyDataSource)]
  38. HRESULT RemoteDestroyDataSource(
  39. [out] IErrorInfo ** ppErrorInfoRem
  40. );
  41. [local]
  42. HRESULT GetCreationProperties(
  43. [in] ULONG cPropertyIDSets,
  44. [in, size_is(cPropertyIDSets)] const DBPROPIDSET rgPropertyIDSets[],
  45. [in, out] ULONG * pcPropertyInfoSets,
  46. [out, size_is(,*pcPropertyInfoSets)] DBPROPINFOSET ** prgPropertyInfoSets,
  47. [out] OLECHAR ** ppDescBuffer
  48. );
  49. [call_as(GetCreationProperties)]
  50. HRESULT RemoteGetCreationProperties(
  51. [in] ULONG cPropertyIDSets,
  52. [in, unique, size_is(cPropertyIDSets)] const DBPROPIDSET * rgPropertyIDSets,
  53. [in, out] ULONG * pcPropertyInfoSets,
  54. [out, size_is(,*pcPropertyInfoSets)] DBPROPINFOSET ** prgPropertyInfoSets,
  55. [in, out] DBCOUNTITEM * pcOffsets,
  56. [out, size_is(,(ULONG)*pcOffsets)] DBBYTEOFFSET ** prgDescOffsets,
  57. [in, out] ULONG * pcbDescBuffer,
  58. [in, out, unique, size_is(,*pcbDescBuffer)] OLECHAR ** ppDescBuffer,
  59. [out] IErrorInfo ** ppErrorInfoRem
  60. );
  61. [local]
  62. HRESULT ModifyDataSource(
  63. [in] ULONG cPropertySets,
  64. [in, size_is(cPropertySets)] DBPROPSET rgPropertySets[]
  65. );
  66. [call_as(ModifyDataSource)]
  67. HRESULT RemoteModifyDataSource(
  68. [in] ULONG cPropertySets,
  69. [in, size_is(cPropertySets)] DBPROPSET * rgPropertySets,
  70. [out] IErrorInfo ** ppErrorInfoRem
  71. );
  72. }