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

模拟服务器

开发平台:

C/C++

  1. //-----------------------------------------------------------------------------
  2. // File: srcrst.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(0c733a1e-2a1c-11ce-ade5-00aa0044773d)
  14. interface ISourcesRowset : IUnknown {
  15. typedef DWORD DBSOURCETYPE;
  16. enum DBSOURCETYPEENUM {
  17. DBSOURCETYPE_DATASOURCE = 1,
  18. DBSOURCETYPE_ENUMERATOR = 2,
  19. };
  20. // VERSION 2.0
  21. cpp_quote("//@@@+ V2.0")
  22. cpp_quote("#if( OLEDBVER >= 0x0200 )")
  23. enum DBSOURCETYPEENUM20 {
  24. DBSOURCETYPE_DATASOURCE_TDP = 1,
  25. DBSOURCETYPE_DATASOURCE_MDP = 3,
  26. };
  27. cpp_quote("#endif // OLEDBVER >= 0x0200")
  28. cpp_quote("//@@@- V2.0")
  29. // VERSION 2.5
  30. cpp_quote("//@@@+ V2.5")
  31. cpp_quote("#if( OLEDBVER >= 0x0250 )")
  32. enum DBSOURCETYPEENUM25 {
  33. DBSOURCETYPE_BINDER = 4,
  34. };
  35. cpp_quote("#endif // OLEDBVER >= 0x0250")
  36. cpp_quote("//@@@- V2.5")
  37. [local]
  38. HRESULT GetSourcesRowset(
  39. [in] IUnknown * pUnkOuter,
  40. [in] REFIID riid,
  41. [in] ULONG cPropertySets,
  42. [in, out, unique, size_is(cPropertySets)] DBPROPSET rgProperties[],
  43. [out, iid_is(riid)] IUnknown ** ppSourcesRowset
  44. );
  45. [call_as(GetSourcesRowset)]
  46. HRESULT RemoteGetSourcesRowset(
  47. [in] IUnknown * pUnkOuter,
  48. [in] REFIID riid,
  49. [in] ULONG cPropertySets,
  50. [in, unique, size_is(cPropertySets)] DBPROPSET * rgProperties,
  51. [out, iid_is(riid)] IUnknown ** ppSourcesRowset,
  52. [in] ULONG cTotalProps,
  53. [out, size_is(cTotalProps)] DBPROPSTATUS * rgPropStatus,
  54. [out] IErrorInfo ** ppErrorInfoRem
  55. );
  56. }