home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / persist.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  1.8 KB  |  70 lines

  1. //--------------------------------------------------------------------
  2. // Microsoft MS Persist OLE DB Provider
  3. //
  4. // (c) 1997 Microsoft Corporation.    All Rights Reserved.
  5. //
  6. // MSPersist external constants GUIDS and other things users need
  7.  
  8. #ifndef PERSIST_H
  9. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  10. #define PERSIST_H
  11.  
  12. // Persist Properties
  13. #define DBPROPFLAGS_PERSIST 0x2000
  14.  
  15. #define DBPROPVAL_PERSIST_ADTG 0
  16. #define DBPROPVAL_PERSIST_XML 1
  17. #define DBPROP_PersistFormat 2
  18. #define DBPROP_PersistSchema 3
  19. #define DBPROP_HCHAPTER 4
  20. #define DBPROP_MAINTAINPROPS 5
  21.  
  22. // XML writing only properties
  23. #define DBPROP_Unicode    6
  24.  
  25. // internal property (read-only)
  26. #define DBPROP_INTERLEAVEDROWS 8
  27.  
  28. extern const CLSID CLSID_MSPersist
  29. #if (defined DBINITCONSTANTS) | (defined DSINITCONSTANTS)
  30.  = { 0x7c07e0d0, 0x4418, 0x11d2, { 0x92, 0x12, 0x0, 0xc0, 0x4f, 0xbb, 0xbf, 0xb3 } }
  31. #endif
  32. ;
  33.  
  34. // {4D7839A0-5B8E-11d1-A6B3-00A0C9138C66}
  35. extern const GUID    DBPROPSET_PERSIST
  36. #if (defined DBINITCONSTANTS) | (defined DSINITCONSTANTS)
  37.  = { 0x4d7839a0, 0x5b8e, 0x11d1, { 0xa6, 0xb3, 0x0, 0xa0, 0xc9, 0x13, 0x8c, 0x66 } };
  38. #endif
  39. ;
  40.  
  41. #define MS_PERSIST_PROGID "MSPersist"
  42.  
  43. extern const char *PROGID_MSPersist
  44. #if (defined DBINITCONSTANTS) | (defined DSINITCONSTANTS)
  45.  = MS_PERSIST_PROGID
  46. #endif
  47. ;
  48.  
  49. extern const unsigned short *PROGID_MSPersist_W
  50. #if (defined DBINITCONSTANTS) | (defined DSINITCONSTANTS)
  51. = L"MSPersist"
  52. #endif
  53. ;
  54.  
  55. extern const char *PROGID_MSPersist_Version
  56. #if (defined DBINITCONSTANTS) | (defined DSINITCONSTANTS)
  57.  = MS_PERSIST_PROGID ".1"
  58. #endif
  59. ;
  60.  
  61. extern const unsigned short *PROGID_MSPersist_Version_W
  62. #if (defined DBINITCONSTANTS) | (defined DSINITCONSTANTS)
  63.  = L"MSPersist.1"
  64. #endif
  65. ;
  66.  
  67. #pragma option pop /*P_O_Pop*/
  68. #endif // PERSIST_H
  69.  
  70.