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.

137 lines
2.1 KiB

  1. // wtdb.h
  2. #ifndef _INC_WTDB
  3. #define _INC_WTDB
  4. //
  5. // WIATEST DATABASE
  6. //
  7. #define NUM_ENTRIES 7
  8. // WTDB struct
  9. typedef struct WTDBtag
  10. {
  11. char* pName;
  12. int nItems;
  13. DWORD* pData;
  14. char** pDataNames;
  15. }WTDB;
  16. // MediaType
  17. DWORD MediaType[]={
  18. TYMED_CALLBACK,
  19. TYMED_FILE
  20. };
  21. char* MediaTypestr[]={
  22. "TYMED_CALLBACK",
  23. "TYMED_FILE"
  24. };
  25. // CurrentIntent
  26. DWORD CurrentIntent[]={
  27. WIA_INTENT_NONE,
  28. WIA_INTENT_IMAGE_TYPE_COLOR,
  29. WIA_INTENT_IMAGE_TYPE_GRAYSCALE,
  30. WIA_INTENT_IMAGE_TYPE_TEXT,
  31. WIA_INTENT_MINIMIZE_SIZE,
  32. WIA_INTENT_MAXIMIZE_QUALITY
  33. };
  34. char* CurrentIntentstr[]={
  35. "WIA_INTENT_NONE",
  36. "WIA_INTENT_IMAGE_TYPE_COLOR",
  37. "WIA_INTENT_IMAGE_TYPE_GRAYSCALE",
  38. "WIA_INTENT_IMAGE_TYPE_TEXT",
  39. "WIA_INTENT_MINIMIZE_SIZE",
  40. "WIA_INTENT_MAXIMIZE_QUALITY"
  41. };
  42. // Data Type
  43. DWORD DataType[]={
  44. WIA_DATA_THRESHOLD,
  45. WIA_DATA_DITHER,
  46. WIA_DATA_GRAYSCALE,
  47. WIA_DATA_COLOR,
  48. WIA_DATA_COLOR_THRESHOLD,
  49. WIA_DATA_COLOR_DITHER,
  50. };
  51. char* DataTypestr[]={
  52. "WIA_DATA_THRESHOLD",
  53. "WIA_DATA_DITHER",
  54. "WIA_DATA_GRAYSCALE",
  55. "WIA_DATA_COLOR",
  56. "WIA_DATA_COLOR_THRESHOLD",
  57. "WIA_DATA_COLOR_DITHER",
  58. };
  59. // Document Handling Select
  60. DWORD DocHandlingSelect[]={
  61. FEEDER,
  62. FLATBED,
  63. DUPLEX,
  64. FRONT_FIRST,
  65. BACK_FIRST,
  66. FRONT_ONLY,
  67. BACK_ONLY,
  68. NEXT_PAGE,
  69. PREFEED,
  70. AUTO_ADVANCE
  71. };
  72. char* DocHandlingSelectstr[]={
  73. "FEEDER",
  74. "FLATBED",
  75. "DUPLEX",
  76. "FRONT_FIRST",
  77. "BACK_FIRST",
  78. "FRONT_ONLY",
  79. "BACK_ONLY",
  80. "NEXT_PAGE",
  81. "PREFEED",
  82. "AUTO_ADVANCE"
  83. };
  84. // Compression constants
  85. DWORD Compression[]={
  86. WIA_COMPRESSION_NONE,
  87. WIA_COMPRESSION_BI_RLE4,
  88. WIA_COMPRESSION_BI_RLE8,
  89. WIA_COMPRESSION_G3
  90. };
  91. char* Compressionstr[]={
  92. "WIA_COMPRESSION_NONE",
  93. "WIA_COMPRESSION_BI_RLE4",
  94. "WIA_COMPRESSION_BI_RLE8",
  95. "WIA_COMPRESSION_G3"
  96. };
  97. // Preview constants
  98. DWORD Preview[]={
  99. WIA_FINAL_SCAN,
  100. WIA_PREVIEW_SCAN
  101. };
  102. char* Previewstr[]={
  103. "WIA_FINAL_SCAN",
  104. "WIA_PREVIEW_SCAN"
  105. };
  106. // WiatestDatabase
  107. WTDB WiatestDatabase[NUM_ENTRIES]={
  108. {NULL,(NUM_ENTRIES - 1),NULL,NULL},
  109. {"Current Intent",6,CurrentIntent,CurrentIntentstr},
  110. {"Data Type",6,DataType,DataTypestr},
  111. {"Document Handling Select",10,DocHandlingSelect,DocHandlingSelectstr},
  112. {"Compression",4,Compression,Compressionstr},
  113. {"Media Type",2,MediaType,MediaTypestr},
  114. {"Preview",2,Preview,Previewstr}
  115. };
  116. #endif