Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
3.2 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: adc.h
  4. //
  5. // Copyright: Copyright (c) Microsoft Corporation
  6. //
  7. // Contents: Adc external constants and GUIDS
  8. //
  9. // Comments:
  10. //
  11. //-----------------------------------------------------------------------------
  12. #ifndef ADC_INCLUDED
  13. #define ADC_INCLUDED
  14. #if (defined DBINITCONSTANTS) | (defined ADCINITCONSTANTS)
  15. extern const CLSID CLSID_FoxRowset = { 0x3ff292b6, 0xb204, 0x11cf, { 0x8d, 0x23, 0, 0xaa, 0, 0x5f, 0xfe, 0x58 } };
  16. extern const GUID DBPROPSET_ADC = { 0xb68e3cc1, 0x6deb, 0x11d0, { 0x8d, 0xf6, 0x00, 0xaa, 0x00, 0x5f, 0xfe, 0x58 } };
  17. extern const GUID IID_IAsyncAllowed = {0xf5f2893a, 0xba9e, 0x11d0, { 0xab, 0xb9, 0x0, 0xc0, 0x4f, 0xc2, 0x9f, 0x8f } };
  18. extern const IID IID_IRowsetADCExtensions = { 0xF17324c4, 0x68E0, 0x11D0, { 0xAD, 0x45, 0x00, 0xC0, 0x4F, 0xC2, 0x98, 0x63 } };
  19. extern const IID IID_IUpdateInfo = { 0xa0385420, 0x62b8, 0x11d1, { 0x9a, 0x6, 0x0, 0xa0, 0xc9, 0x3, 0xaa, 0x45 } };
  20. extern const IID IID_IRowsetSynchronize = { 0x1be41e60, 0x807a, 0x11d1, { 0x9a, 0x14, 0x0, 0xa0, 0xc9, 0x3, 0xaa, 0x45 } };
  21. extern const IID IID_IRowsetProperties = { 0x1e837070, 0xbcfc, 0x11d1, { 0x9a, 0x2c, 0x0, 0xa0, 0xc9, 0x3, 0xaa, 0x45 } };
  22. #else
  23. extern const CLSID CLSID_FoxRowset;
  24. extern const GUID DBPROPSET_ADC;
  25. extern const GUID IID_IAsyncAllowed;
  26. extern const IID IID_IRowsetADCExtensions;
  27. extern const IID IID_IUpdateInfo;
  28. extern const IID IID_IRowsetSynchronize;
  29. extern const IID IID_IRowsetProperties;
  30. #endif // DBINITCONSTANTS
  31. enum ADCPROPENUM
  32. { DBPROP_ADC_ASYNCHFETCHSIZE = 3,
  33. DBPROP_ADC_BATCHSIZE = 4,
  34. DBPROP_ADC_UPDATECRITERIA = 5,
  35. // dropping support for the UPDATEOPERTION property, but should not reuse the number
  36. // DBPROP_ADC_UPDATEOPERATION = 6,
  37. DBPROP_ADC_ASYNCHPREFETCHSIZE = 7,
  38. DBPROP_ADC_ASYNCHTHREADPRIORITY = 8,
  39. DBPROP_ADC_CACHECHILDROWS = 9,
  40. DBPROP_ADC_MAINTAINCHANGESTATUS = 10,
  41. DBPROP_ADC_AUTORECALC = 11,
  42. DBPROP_ADC_UNIQUETABLE = 13,
  43. DBPROP_ADC_UNIQUESCHEMA = 14,
  44. DBPROP_ADC_UNIQUECATALOG = 15,
  45. DBPROP_ADC_CUSTOMRESYNCH = 16,
  46. DBPROP_ADC_CEVER = 17,
  47. DBPROP_ADC_RESHAPENAME = 18,
  48. DBPROP_ADC_UPDATERESYNC = 19,
  49. // removing SaveMode, but we should not reuse the number
  50. // DBPROP_ADC_SAVEMODE = 20,
  51. DBPROP_ADC_BACKINGSTORE = 21,
  52. DBPROP_ADC_RELEASESHAPEONDISCONNECT = 22
  53. };
  54. // these enums are defined in both adc.h and adoint.h
  55. // do not re define them here if adoint.h has already been included
  56. #ifndef _COMMON_ADC_AND_ADO_PROPS_
  57. #define _COMMON_ADC_AND_ADO_PROPS_
  58. enum ADCPROP_UPDATECRITERIA_ENUM
  59. { adCriteriaKey = 0,
  60. adCriteriaAllCols = 1,
  61. adCriteriaUpdCols = 2,
  62. adCriteriaTimeStamp = 3
  63. };
  64. enum ADCPROP_ASYNCTHREADPRIORITY_ENUM
  65. { adPriorityLowest = 1,
  66. adPriorityBelowNormal = 2,
  67. adPriorityNormal = 3,
  68. adPriorityAboveNormal = 4,
  69. adPriorityHighest = 5
  70. };
  71. enum ADCPROP_UPDATERESYNC_ENUM
  72. { adResyncNone = 0,
  73. adResyncAutoIncrement = 0x1,
  74. adResyncConflicts = 0x2,
  75. adResyncUpdates = 0x4,
  76. adResyncInserts = 0x8,
  77. adResyncAll = 0x0F
  78. };
  79. enum ADCPROP_AUTORECALC_ENUM
  80. {
  81. adRecalcUpFront = 0,
  82. adRecalcAlways = 1
  83. };
  84. #endif // _COMMON_ADC_AND_ADO_PROPS_
  85. enum FOXROWSETPROPENUM
  86. {
  87. DBPROP_FOXTABLENAME = 0xeeffL
  88. };
  89. #endif // ADC_INCLUDED