Leaked source code of windows server 2003
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.

74 lines
3.9 KiB

  1. #define INITGUID
  2. #include <guiddef.h>
  3. typedef enum tagDBCOLKIND
  4. {
  5. DBCOLKIND_GUID_NAME = 0,
  6. DBCOLKIND_GUID_NUMBER = 1,
  7. DBCOLKIND_NAME = 2
  8. } DBCOLKIND;
  9. typedef struct tagDBCOLUMNID
  10. {
  11. GUID guid;
  12. DBCOLKIND dwKind;
  13. union
  14. {
  15. long lNumber;
  16. wchar_t* lpdbsz;
  17. };
  18. } DBCOLUMNID;
  19. #define DBCIDGUID {0xfe284700L,0xd188,0x11cd,{0xad,0x48, 0x0,0xaa, 0x0,0x3c,0x9c,0xb6}}
  20. #define DBBMKGUID {0xf6304bb0L,0xd188,0x11cd,{0xad,0x48, 0x0,0xaa, 0x0,0x3c,0x9c,0xb6}}
  21. #define DECLARE_COLUMNID EXTERN_C const DBCOLUMNID DECLSPEC_SELECTANY
  22. DECLARE_COLUMNID COLUMNID_INVALID = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, -1};
  23. DECLARE_COLUMNID COLUMN_AUTOINCREMENT = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 0};
  24. DECLARE_COLUMNID COLUMN_BASECOLUMNNAME = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 1};
  25. DECLARE_COLUMNID COLUMN_BASENAME = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 2};
  26. DECLARE_COLUMNID COLUMN_BINARYCOMPARABLE = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 3};
  27. DECLARE_COLUMNID COLUMN_BINDTYPE = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 4};
  28. DECLARE_COLUMNID COLUMN_CASESENSITIVE = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 5};
  29. DECLARE_COLUMNID COLUMN_COLLATINGORDER = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 6};
  30. DECLARE_COLUMNID COLUMN_COLUMNID = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 7};
  31. DECLARE_COLUMNID COLUMN_CURSORCOLUMN = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 8};
  32. DECLARE_COLUMNID COLUMN_DATACOLUMN = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 9};
  33. DECLARE_COLUMNID COLUMN_DEFAULTVALUE = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 10};
  34. DECLARE_COLUMNID COLUMN_ENTRYIDMAXLENGTH = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 11};
  35. DECLARE_COLUMNID COLUMN_FIXED = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 12};
  36. DECLARE_COLUMNID COLUMN_HASDEFAULT = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 13};
  37. DECLARE_COLUMNID COLUMN_MAXLENGTH = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 14};
  38. DECLARE_COLUMNID COLUMN_MULTIVALUED = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 15};
  39. DECLARE_COLUMNID COLUMN_NAME = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 16};
  40. DECLARE_COLUMNID COLUMN_NULLABLE = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 17};
  41. DECLARE_COLUMNID COLUMN_PHYSICALSORT = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 18};
  42. DECLARE_COLUMNID COLUMN_NUMBER = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 19};
  43. DECLARE_COLUMNID COLUMN_ROWENTRYID = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 20};
  44. DECLARE_COLUMNID COLUMN_SCALE = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 21};
  45. DECLARE_COLUMNID COLUMN_SEARCHABLE = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 22};
  46. DECLARE_COLUMNID COLUMN_TYPE = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 23};
  47. DECLARE_COLUMNID COLUMN_UNIQUE = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 24};
  48. DECLARE_COLUMNID COLUMN_UPDATABLE = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 25};
  49. DECLARE_COLUMNID COLUMN_VERSION = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 26};
  50. DECLARE_COLUMNID COLUMN_STATUS = {DBCIDGUID, DBCOLKIND_GUID_NUMBER, 27};
  51. DECLARE_COLUMNID COLUMN_BMKTEMPORARY = {DBBMKGUID, DBCOLKIND_GUID_NUMBER, 0};
  52. DECLARE_COLUMNID COLUMN_BMKTEMPORARYREL = {DBBMKGUID, DBCOLKIND_GUID_NUMBER, 1};
  53. DECLARE_COLUMNID COLUMN_BMKCURSOR = {DBBMKGUID, DBCOLKIND_GUID_NUMBER, 2};
  54. DECLARE_COLUMNID COLUMN_BMKCURSORREL = {DBBMKGUID, DBCOLKIND_GUID_NUMBER, 3};
  55. DECLARE_COLUMNID COLUMN_BMKSESSION = {DBBMKGUID, DBCOLKIND_GUID_NUMBER, 4};
  56. DECLARE_COLUMNID COLUMN_BMKSESSIONREL = {DBBMKGUID, DBCOLKIND_GUID_NUMBER, 5};
  57. DECLARE_COLUMNID COLUMN_BMKPERSIST = {DBBMKGUID, DBCOLKIND_GUID_NUMBER, 6};
  58. DECLARE_COLUMNID COLUMN_BMKPERSISTREL = {DBBMKGUID, DBCOLKIND_GUID_NUMBER, 7};
  59. #define DECLARE_BYTE EXTERN_C const unsigned char DECLSPEC_SELECTANY
  60. DECLARE_BYTE DBBMK_INVALID = 0x0;
  61. DECLARE_BYTE DBBMK_CURRENT = 0x1;
  62. DECLARE_BYTE DBBMK_BEGINNING = 0x2;
  63. DECLARE_BYTE DBBMK_END = 0x3;