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.

237 lines
12 KiB

  1. //=============================================================================
  2. // This file contains the defines useful for defining the dataset of default
  3. // system info to be collected (primarily resource IDs).
  4. //=============================================================================
  5. #pragma once
  6. enum { RESOURCE_DMA = 0, RESOURCE_IRQ, RESOURCE_IO, RESOURCE_MEM, RESOURCE_CONFLICTS, RESOURCE_FORCED };
  7. enum { CODEC_AUDIO = 0, CODEC_VIDEO };
  8. enum { QUERY_CDROM = 1,
  9. QUERY_SERVICES,
  10. QUERY_PROGRAMGROUP,
  11. QUERY_STARTUP,
  12. QUERY_KEYBOARD,
  13. QUERY_POINTDEV,
  14. QUERY_MODEM,
  15. QUERY_NETPROT,
  16. QUERY_ENVVAR,
  17. QUERY_SOUNDDEV,
  18. QUERY_DISPLAY,
  19. QUERY_INFRARED,
  20. QUERY_PARALLEL,
  21. QUERY_PRINTER,
  22. QUERY_NETCONNECTION,
  23. QUERY_DRIVER,
  24. QUERY_SIGNEDDRIVER,
  25. QUERY_IDE,
  26. QUERY_SCSI,
  27. QUERY_PRINTJOBS,
  28. QUERY_NETADAPTER,
  29. QUERY_SERIALPORT };
  30. extern HRESULT SystemSummary(CWMIHelper * pWMI, DWORD dwIndex, volatile BOOL * pfCancel, CPtrList * aColValues, int iColCount, void ** ppCache);
  31. extern HRESULT ResourceCategories(CWMIHelper * pWMI, DWORD dwIndex, volatile BOOL * pfCancel, CPtrList * aColValues, int iColCount, void ** ppCache);
  32. extern HRESULT CODECs(CWMIHelper * pWMI, DWORD dwIndex, volatile BOOL * pfCancel, CPtrList * aColValues, int iColCount, void ** ppCache);
  33. extern HRESULT SimpleQuery(CWMIHelper * pWMI, DWORD dwIndex, volatile BOOL * pfCancel, CPtrList * aColValues, int iColCount, void ** ppCache);
  34. extern HRESULT ComponentDrives(CWMIHelper * pWMI, DWORD dwIndex, volatile BOOL * pfCancel, CPtrList * aColValues, int iColCount, void ** ppCache);
  35. extern HRESULT Winsock(CWMIHelper * pWMI, DWORD dwIndex, volatile BOOL * pfCancel, CPtrList * aColValues, int iColCount, void ** ppCache);
  36. extern HRESULT Disks(CWMIHelper * pWMI, DWORD dwIndex, volatile BOOL * pfCancel, CPtrList * aColValues, int iColCount, void ** ppCache);
  37. extern HRESULT ProblemDevices(CWMIHelper * pWMI, DWORD dwIndex, volatile BOOL * pfCancel, CPtrList * aColValues, int iColCount, void ** ppCache);
  38. extern HRESULT RunningTasks(CWMIHelper * pWMI, DWORD dwIndex, volatile BOOL * pfCancel, CPtrList * aColValues, int iColCount, void ** ppCache);
  39. extern HRESULT LoadedModules(CWMIHelper * pWMI, DWORD dwIndex, volatile BOOL * pfCancel, CPtrList * aColValues, int iColCount, void ** ppCache);
  40. extern HRESULT OLERegistration(CWMIHelper * pWMI, DWORD dwIndex, volatile BOOL * pfCancel, CPtrList * aColValues, int iColCount, void ** ppCache);
  41. extern HRESULT ComponentsUSB(CWMIHelper * pWMI, DWORD dwIndex, volatile BOOL * pfCancel, CPtrList * aColValues, int iColCount, void ** ppCache);
  42. extern HRESULT WindowsErrorReporting(CWMIHelper * pWMI, DWORD dwIndex, volatile BOOL * pfCancel, CPtrList * aColValues, int iColCount, void ** ppCache);
  43. #define FIRST_COLUMN_CAPTION_ID 400
  44. #define IDS_VALUE FIRST_COLUMN_CAPTION_ID + 0
  45. #define IDS_ITEM FIRST_COLUMN_CAPTION_ID + 1
  46. #define IDS_CREATIONDATE FIRST_COLUMN_CAPTION_ID + 2
  47. #define IDS_SIZE FIRST_COLUMN_CAPTION_ID + 3
  48. #define IDS_VERSION FIRST_COLUMN_CAPTION_ID + 4
  49. #define IDS_FILE FIRST_COLUMN_CAPTION_ID + 5
  50. #define IDS_STATUS FIRST_COLUMN_CAPTION_ID + 6
  51. #define IDS_DESCRIPTION FIRST_COLUMN_CAPTION_ID + 7
  52. #define IDS_MANUFACTURER FIRST_COLUMN_CAPTION_ID + 8
  53. #define IDS_CODEC FIRST_COLUMN_CAPTION_ID + 9
  54. #define IDS_DEVICE FIRST_COLUMN_CAPTION_ID + 10
  55. #define IDS_RESOURCE FIRST_COLUMN_CAPTION_ID + 12
  56. #define IDS_DISPLAYNAME FIRST_COLUMN_CAPTION_ID + 13
  57. #define IDS_NAME FIRST_COLUMN_CAPTION_ID + 14
  58. #define IDS_STATE FIRST_COLUMN_CAPTION_ID + 15
  59. #define IDS_STARTMODE FIRST_COLUMN_CAPTION_ID + 16
  60. #define IDS_SERVICETYPE FIRST_COLUMN_CAPTION_ID + 17
  61. #define IDS_PATH FIRST_COLUMN_CAPTION_ID + 18
  62. #define IDS_ERRORCONTROL FIRST_COLUMN_CAPTION_ID + 19
  63. #define IDS_STARTNAME FIRST_COLUMN_CAPTION_ID + 20
  64. #define IDS_TAGID FIRST_COLUMN_CAPTION_ID + 21
  65. #define IDS_IRQCHANNEL FIRST_COLUMN_CAPTION_ID + 22
  66. #define IDS_IOPORT FIRST_COLUMN_CAPTION_ID + 23
  67. #define IDS_DMACHANNEL FIRST_COLUMN_CAPTION_ID + 24
  68. #define IDS_MEMORYADDRESS FIRST_COLUMN_CAPTION_ID + 25
  69. #define IDS_GROUPNAME FIRST_COLUMN_CAPTION_ID + 26
  70. #define IDS_USERNAME FIRST_COLUMN_CAPTION_ID + 27
  71. #define IDS_PROGRAM FIRST_COLUMN_CAPTION_ID + 28
  72. #define IDS_COMMAND FIRST_COLUMN_CAPTION_ID + 29
  73. #define IDS_LOCATION FIRST_COLUMN_CAPTION_ID + 30
  74. #define IDS_PNPDEVICEID FIRST_COLUMN_CAPTION_ID + 31
  75. #define IDS_YES FIRST_COLUMN_CAPTION_ID + 32
  76. #define IDS_NO FIRST_COLUMN_CAPTION_ID + 33
  77. #define IDS_VARIABLE FIRST_COLUMN_CAPTION_ID + 34
  78. #define IDS_PORTNAME FIRST_COLUMN_CAPTION_ID + 35
  79. #define IDS_SERVERNAME FIRST_COLUMN_CAPTION_ID + 36
  80. #define IDS_LOCALNAME FIRST_COLUMN_CAPTION_ID + 37
  81. #define IDS_REMOTENAME FIRST_COLUMN_CAPTION_ID + 38
  82. #define IDS_TYPE FIRST_COLUMN_CAPTION_ID + 39
  83. #define IDS_STARTED FIRST_COLUMN_CAPTION_ID + 40
  84. #define IDS_ACCEPTPAUSE FIRST_COLUMN_CAPTION_ID + 41
  85. #define IDS_ACCEPTSTOP FIRST_COLUMN_CAPTION_ID + 42
  86. #define IDS_DRIVER FIRST_COLUMN_CAPTION_ID + 43
  87. #define IDS_ERRORCODE FIRST_COLUMN_CAPTION_ID + 44
  88. #define IDS_DOCUMENT FIRST_COLUMN_CAPTION_ID + 45
  89. #define IDS_OWNER FIRST_COLUMN_CAPTION_ID + 46
  90. #define IDS_NOTIFY FIRST_COLUMN_CAPTION_ID + 47
  91. #define IDS_TIMESUBMITTED FIRST_COLUMN_CAPTION_ID + 49
  92. #define IDS_STARTTIME FIRST_COLUMN_CAPTION_ID + 50
  93. #define IDS_UNTILTIME FIRST_COLUMN_CAPTION_ID + 51
  94. #define IDS_ELAPSEDTIME FIRST_COLUMN_CAPTION_ID + 52
  95. #define IDS_PAGESPRINTED FIRST_COLUMN_CAPTION_ID + 53
  96. #define IDS_JOBID FIRST_COLUMN_CAPTION_ID + 54
  97. #define IDS_PRIORITY FIRST_COLUMN_CAPTION_ID + 55
  98. #define IDS_PARAMETERS FIRST_COLUMN_CAPTION_ID + 56
  99. #define IDS_PRINTPROCESSOR FIRST_COLUMN_CAPTION_ID + 57
  100. #define IDS_HOSTPRINTQUEUE FIRST_COLUMN_CAPTION_ID + 58
  101. #define IDS_DATATYPE FIRST_COLUMN_CAPTION_ID + 59
  102. #define IDS_PROCESSID FIRST_COLUMN_CAPTION_ID + 60
  103. #define IDS_MINWORKINGSET FIRST_COLUMN_CAPTION_ID + 61
  104. #define IDS_MAXWORKINGSET FIRST_COLUMN_CAPTION_ID + 62
  105. #define IDS_FILEDATE FIRST_COLUMN_CAPTION_ID + 63
  106. #define IDS_OBJECT FIRST_COLUMN_CAPTION_ID + 64
  107. #define IDS_LOCALSERVER FIRST_COLUMN_CAPTION_ID + 65
  108. #define IDS_RESOURCETYPE FIRST_COLUMN_CAPTION_ID + 66
  109. #define IDS_DEVICETYPE FIRST_COLUMN_CAPTION_ID + 67
  110. #define IDS_TIME FIRST_COLUMN_CAPTION_ID + 68
  111. #define IDS_CHANGE FIRST_COLUMN_CAPTION_ID + 69
  112. #define IDS_DETAILS FIRST_COLUMN_CAPTION_ID + 70
  113. #define FIRST_QUERY_CAPTION_ID 475
  114. #define IDS_SYSSUMM1 FIRST_QUERY_CAPTION_ID + 1
  115. #define IDS_SYSSUMM2 FIRST_QUERY_CAPTION_ID + 2
  116. #define IDS_SYSSUMM3 FIRST_QUERY_CAPTION_ID + 3
  117. #define IDS_SYSSUMM4 FIRST_QUERY_CAPTION_ID + 4
  118. #define IDS_SYSSUMM5 FIRST_QUERY_CAPTION_ID + 5
  119. #define IDS_SYSSUMM6 FIRST_QUERY_CAPTION_ID + 6
  120. #define IDS_SYSSUMM7 FIRST_QUERY_CAPTION_ID + 7
  121. #define IDS_SYSSUMM8 FIRST_QUERY_CAPTION_ID + 8
  122. #define IDS_SYSSUMM9 FIRST_QUERY_CAPTION_ID + 9
  123. #define IDS_SYSSUMM10 FIRST_QUERY_CAPTION_ID + 10
  124. #define IDS_SYSSUMM11 FIRST_QUERY_CAPTION_ID + 11
  125. #define IDS_SYSSUMM12 FIRST_QUERY_CAPTION_ID + 12
  126. #define IDS_SYSSUMM13 FIRST_QUERY_CAPTION_ID + 13
  127. #define FIRST_CAT_CAPTION_ID 500
  128. #define IDS_SYSTEMSUMMARY0 FIRST_CAT_CAPTION_ID + 0
  129. #define IDS_RESOURCES0 FIRST_CAT_CAPTION_ID + 1
  130. #define IDS_RESOURCESCONFLICTS0 FIRST_CAT_CAPTION_ID + 2
  131. #define IDS_RESOURCESDMA0 FIRST_CAT_CAPTION_ID + 3
  132. #define IDS_RESOURCESFORCEDHARDWARE0 FIRST_CAT_CAPTION_ID + 4
  133. #define IDS_RESOURCESIO0 FIRST_CAT_CAPTION_ID + 5
  134. #define IDS_RESOURCESIRQS0 FIRST_CAT_CAPTION_ID + 6
  135. #define IDS_RESOURCESMEMORY0 FIRST_CAT_CAPTION_ID + 7
  136. #define IDS_COMPONENTS0 FIRST_CAT_CAPTION_ID + 8
  137. #define IDS_COMPONENTSMULTIMEDIA0 FIRST_CAT_CAPTION_ID + 9
  138. #define IDS_COMPONENTSMULTIMEDIAAUDIO0 FIRST_CAT_CAPTION_ID + 10
  139. #define IDS_COMPONENTSMULTIMEDIAVIDEO0 FIRST_CAT_CAPTION_ID + 11
  140. #define IDS_COMPONENTSMULTIMEDIACDROM0 FIRST_CAT_CAPTION_ID + 12
  141. #define IDS_COMPONENTSMULTIMEDIASOUND0 FIRST_CAT_CAPTION_ID + 13
  142. #define IDS_COMPONENTSDISPLAY0 FIRST_CAT_CAPTION_ID + 14
  143. #define IDS_COMPONENTSINFRARED0 FIRST_CAT_CAPTION_ID + 15
  144. #define IDS_COMPONENTSINPUT0 FIRST_CAT_CAPTION_ID + 16
  145. #define IDS_COMPONENTSKEYBOARD0 FIRST_CAT_CAPTION_ID + 17
  146. #define IDS_COMPONENTSPOINTDEV0 FIRST_CAT_CAPTION_ID + 18
  147. #define IDS_COMPONENTSMODEM0 FIRST_CAT_CAPTION_ID + 19
  148. #define IDS_COMPONENTSNETWORK0 FIRST_CAT_CAPTION_ID + 20
  149. #define IDS_COMPONENTSNETADAPTER0 FIRST_CAT_CAPTION_ID + 21
  150. #define IDS_COMPONENTSNETWORKPROTOCOL0 FIRST_CAT_CAPTION_ID + 22
  151. #define IDS_COMPONENTSNETWORKWINSOCK0 FIRST_CAT_CAPTION_ID + 23
  152. #define IDS_COMPONENTSPORTS0 FIRST_CAT_CAPTION_ID + 24
  153. #define IDS_COMPONENTSSERIALPORTS0 FIRST_CAT_CAPTION_ID + 25
  154. #define IDS_COMPONENTSPARALLELPORTS0 FIRST_CAT_CAPTION_ID + 26
  155. #define IDS_COMPONENTSSTORAGE0 FIRST_CAT_CAPTION_ID + 27
  156. #define IDS_COMPONENTSSTORAGEDRIVES0 FIRST_CAT_CAPTION_ID + 28
  157. #define IDS_COMPONENTSSTORAGESCSI0 FIRST_CAT_CAPTION_ID + 29
  158. #define IDS_COMPONENTSPRINTING0 FIRST_CAT_CAPTION_ID + 30
  159. #define IDS_COMPONENTSPROBLEMDEVICES0 FIRST_CAT_CAPTION_ID + 31
  160. #define IDS_COMPONENTSUSB0 FIRST_CAT_CAPTION_ID + 32
  161. #define IDS_SWENV0 FIRST_CAT_CAPTION_ID + 33
  162. #define IDS_SWENVDRIVERS0 FIRST_CAT_CAPTION_ID + 34
  163. #define IDS_SWENVENVVARS0 FIRST_CAT_CAPTION_ID + 35
  164. #define IDS_SWENVJOBS0 FIRST_CAT_CAPTION_ID + 36
  165. #define IDS_SWENVPRINT0 FIRST_CAT_CAPTION_ID + 37
  166. #define IDS_SWENVNETCONN0 FIRST_CAT_CAPTION_ID + 38
  167. #define IDS_SWENVRUNNINGTASKS0 FIRST_CAT_CAPTION_ID + 39
  168. #define IDS_SWENVLOADEDMODULES0 FIRST_CAT_CAPTION_ID + 40
  169. #define IDS_SWENVSERVICES0 FIRST_CAT_CAPTION_ID + 41
  170. #define IDS_SWENVPROGRAMGROUP0 FIRST_CAT_CAPTION_ID + 42
  171. #define IDS_SWENVSTARTUPPROGRAMS0 FIRST_CAT_CAPTION_ID + 43
  172. #define IDS_SWENVOLEREG0 FIRST_CAT_CAPTION_ID + 44
  173. #define IDS_COMPONENTSSTORAGEIDE0 FIRST_CAT_CAPTION_ID + 45
  174. #define IDS_COMPONENTSSTORAGEDISKS0 FIRST_CAT_CAPTION_ID + 46
  175. #define IDS_SWENVSIGNEDDRIVERS0 FIRST_CAT_CAPTION_ID + 47
  176. #define IDS_SWWINERR0 FIRST_CAT_CAPTION_ID + 48
  177. #define IDS_SYSTEMSUMMARYMACHINENAME FIRST_CAT_CAPTION_ID + 49
  178. #define FIRST_QUERY_ID 550
  179. #define IDS_CDROMCOLUMNS FIRST_QUERY_ID + 0
  180. #define IDS_SERVICES1 FIRST_QUERY_ID + 1
  181. #define IDS_PROGRAMGROUP1 FIRST_QUERY_ID + 2
  182. #define IDS_STARTUP1 FIRST_QUERY_ID + 3
  183. #define IDS_KEYBOARD1 FIRST_QUERY_ID + 4
  184. #define IDS_POINTDEV1 FIRST_QUERY_ID + 5
  185. #define IDS_MODEM1 FIRST_QUERY_ID + 6
  186. #define IDS_NETPROT1 FIRST_QUERY_ID + 7
  187. #define IDS_ENVVAR1 FIRST_QUERY_ID + 8
  188. #define IDS_SOUNDDEV1 FIRST_QUERY_ID + 9
  189. #define IDS_DISPLAY1 FIRST_QUERY_ID + 10
  190. #define IDS_INFRARED1 FIRST_QUERY_ID + 11
  191. #define IDS_PARALLEL1 FIRST_QUERY_ID + 12
  192. #define IDS_PRINTER1 FIRST_QUERY_ID + 13
  193. #define IDS_NETCONNECTION1 FIRST_QUERY_ID + 14
  194. #define IDS_DRIVER1 FIRST_QUERY_ID + 15
  195. #define IDS_IDE1 FIRST_QUERY_ID + 16
  196. #define IDS_SCSI1 FIRST_QUERY_ID + 17
  197. #define IDS_PRINTJOBS1 FIRST_QUERY_ID + 18
  198. #define IDS_OLE1 FIRST_QUERY_ID + 19
  199. #define IDS_DISKS1 FIRST_QUERY_ID + 20
  200. #define IDS_NETWORKADAPTER1 FIRST_QUERY_ID + 21
  201. #define IDS_NETWORKADAPTER2 FIRST_QUERY_ID + 22
  202. #define IDS_SERIALPORT1 FIRST_QUERY_ID + 23
  203. #define IDS_SERIALPORT2 FIRST_QUERY_ID + 24
  204. #define IDS_DRIVESTYPE2 FIRST_QUERY_ID + 25
  205. #define IDS_DRIVESTYPE3 FIRST_QUERY_ID + 26
  206. #define IDS_DRIVESTYPE4 FIRST_QUERY_ID + 27
  207. #define IDS_WINSOCK1 FIRST_QUERY_ID + 28
  208. #define IDS_DISKS2 FIRST_QUERY_ID + 30
  209. #define IDS_PROBLEMDEVICE1 FIRST_QUERY_ID + 31
  210. #define IDS_LOADEDMODULE1 FIRST_QUERY_ID + 32
  211. #define IDS_OLEREG1 FIRST_QUERY_ID + 33
  212. #define IDS_USB1 FIRST_QUERY_ID + 34
  213. #define IDS_CODEC1 FIRST_QUERY_ID + 35
  214. #define IDS_SIGNEDDRIVER1 FIRST_QUERY_ID + 36
  215. #define IDS_DEVICENAME FIRST_QUERY_ID + 37
  216. #define IDS_SIGNED FIRST_QUERY_ID + 38
  217. #define IDS_DEVICECLASS FIRST_QUERY_ID + 39
  218. #define IDS_DRIVERVERSION FIRST_QUERY_ID + 40
  219. #define IDS_DRIVERDATE FIRST_QUERY_ID + 41
  220. #define IDS_INFNAME FIRST_QUERY_ID + 42
  221. #define IDS_DRIVERNAME FIRST_QUERY_ID + 43
  222. #define IDS_DEVICEID FIRST_QUERY_ID + 44
  223. #define IDS_SWWINERR1 FIRST_QUERY_ID + 45