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

模拟服务器

开发平台:

C/C++

  1. //-----------------------------------------------------------------------------
  2. // File: tbdefcnt.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. #if( OLEDBVER >= 0x0200 )    
  14.     REMOTED_INTERFACE(0c733aab-2a1c-11ce-ade5-00aa0044773d)
  15. #else
  16.     LOCAL_INTERFACE(0c733aab-2a1c-11ce-ade5-00aa0044773d)
  17. #endif
  18. interface ITableDefinitionWithConstraints : ITableCreation
  19. {
  20. HRESULT AddConstraint
  21. (
  22. [in] DBID * pTableID,
  23. [in] DBCONSTRAINTDESC * pConstraintDesc
  24. );
  25. HRESULT CreateTableWithConstraints
  26. (
  27. [in] IUnknown * pUnkOuter,
  28. [in] DBID * pTableID,
  29. [in] DBORDINAL cColumnDescs,
  30. [in, size_is((ULONG)cColumnDescs), out] DBCOLUMNDESC rgColumnDescs[],
  31. [in] ULONG cConstraintDescs,
  32. [in, size_is(cConstraintDescs)] DBCONSTRAINTDESC rgConstraintDescs[],
  33. [in] REFIID riid,
  34. [in] ULONG cPropertySets,
  35. [in, size_is(cPropertySets), out] DBPROPSET rgPropertySets[],
  36. [out] DBID ** ppTableID,
  37. [out] IUnknown ** ppRowset
  38. );
  39. HRESULT DropConstraint
  40. (
  41. [in] DBID * pTableID,
  42. [in] DBID * pConstraintID
  43. );
  44. }