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.

185 lines
6.1 KiB

  1. //
  2. // Menu defines
  3. //
  4. #define IDM_CONNECT_TEST 1000
  5. #define IDM_DEVICE_LIST 1001
  6. #define IDM_SERVICE_LIST 1002
  7. #define IDM_RELATIONS_LIST 1003
  8. #define IDM_DEVICE_OPS 1004
  9. #define IDM_DEVNODE_KEY 1005
  10. #define IDM_CLASS_LIST 1006
  11. #define IDM_REGRESSION 1007
  12. #define IDM_EXIT 1008
  13. #define IDM_INIT_DETECTION 1100
  14. #define IDM_REPORTLOGON 1101
  15. #define IDM_PNPISA_DETECT 1102
  16. #define IDM_DEVINSTALL 1103
  17. #define IDM_SET_ASSOCIATIONS 1104
  18. #define IDM_CLEAR_ASSOCIATIONS 1105
  19. #define IDM_GET_PROPERTIES 1106
  20. #define IDM_REGISTER_NOTIFY 1107
  21. #define IDM_UNREGISTER_NOTIFY 1108
  22. //
  23. // CONNECT_DIALOG IDs
  24. //
  25. #define CONNECT_DIALOG 2000
  26. #define ID_RAD_LOCAL 2001
  27. #define ID_RAD_REMOTE 2002
  28. #define ID_ED_MACHINE 2003
  29. //
  30. // DEVLIST_DIALOG IDs
  31. //
  32. #define DEVLIST_DIALOG 2100
  33. #define ID_LB_ENUMERATORS 2101
  34. #define ID_LB_DEVICES 2102
  35. #define ID_LB_INSTANCES 2103
  36. //
  37. // DEVICE_DIALOG IDs
  38. //
  39. #define DEVICE_DIALOG 2200
  40. #define ID_LB_DEVICEIDS 2202
  41. #define ID_BT_PARENT 2203
  42. #define ID_BT_CHILD 2204
  43. #define ID_BT_SIBLING 2205
  44. #define ID_ST_RELATED 2206
  45. #define ID_BT_REGPROP 2207
  46. #define ID_BT_SOFTWAREKEY 2208
  47. #define ID_BT_DISABLE 2209
  48. #define ID_BT_ENABLE 2210
  49. #define ID_BT_MOVETO 2211
  50. #define ID_BT_SETUP 2212
  51. #define ID_BT_QUERY_REMOVE 2213
  52. #define ID_BT_REMOVE 2214
  53. #define ID_BT_REENUMERATE 2215
  54. #define ID_BT_HWPROFFLAG 2216
  55. #define ID_BT_GETSTATUS 2217
  56. #define ID_BT_SETPROBLEM 2218
  57. #define ID_ST_STATUS 2219
  58. #define ID_ST_PROBLEM 2220
  59. #define ID_BT_RESOURCEPICKER 2221
  60. #define ID_BT_CREATE 2222
  61. //
  62. // CLASS_DIALOG IDs
  63. //
  64. #define CLASS_DIALOG 2300
  65. #define ID_LB_CLASSES 2301
  66. #define ID_BT_CLASSNAME 2302
  67. #define ID_BT_CLASSKEY 2303
  68. #define ID_ST_CLASSNAME 2304
  69. //
  70. // CLASSKEY_DIALOG IDs
  71. //
  72. #define CLASSKEY_DIALOG 2400
  73. #define ID_CHK_ALL_ACCESS 2401
  74. #define ID_CHK_CREATE_LINK 2402
  75. #define ID_CHK_CREATE_SUB_KEY 2403
  76. #define ID_CHK_ENUMERATE_SUB_KEYS 2404
  77. #define ID_CHK_EXECUTE 2405
  78. #define ID_CHK_NOTIFY 2406
  79. #define ID_CHK_QUERY_VALUE 2407
  80. #define ID_CHK_READ 2408
  81. #define ID_CHK_SET_VALUE 2409
  82. #define ID_CHK_WRITE 2410
  83. #define ID_CHK_CREATE 2411
  84. #define ID_ED_VALUENAME 2412
  85. #define ID_ED_VALUEDATA 2413
  86. #define ID_BT_QUERYVALUE 2414
  87. #define ID_BT_SETVALUE 2415
  88. #define ID_ST_CLASSGUID 2416
  89. //
  90. // SOFTWAREKEY_DIALOG IDs
  91. //
  92. #define SOFTWAREKEY_DIALOG 2500
  93. #define ID_ED_SUBKEY 2501
  94. #define ID_RAD_MACHINE 2502
  95. #define ID_RAD_USER 2503
  96. #define ID_RAD_CONFIG 2504
  97. #define ID_ED_PROFILE 2505
  98. #define ID_BT_CLEAR 2506
  99. //
  100. // DEVNODEKEY_DIALOG IDs
  101. //
  102. #define DEVNODEKEY_DIALOG 2600
  103. #define ID_RD_HW 2601
  104. #define ID_RD_SW 2602
  105. #define ID_RD_USER 2603
  106. #define ID_RD_CONFIG 2604
  107. #define ID_RD_NEITHER 2605
  108. #define ID_BT_OPENDEVKEY 2606
  109. #define ID_BT_DELDEVKEY 2607
  110. #define ID_ED_DEVICEID 2608
  111. //
  112. // CREATE_DIALOG IDs
  113. //
  114. #define CREATE_DIALOG 2700
  115. #define ID_RD_NORMAL 2701
  116. #define ID_RD_NOWAIT 2702
  117. #define ID_CHK_PHANTOM 2703
  118. #define ID_ST_PARENT 2704
  119. #define ID_CHK_GENERATEID 2705
  120. //
  121. // SERVICES_DIALOG IDs
  122. //
  123. #define SERVICE_DIALOG 2800
  124. #define ID_ED_SERVICE 2801
  125. #define ID_LB_SERVICE 2802
  126. #define ID_BT_SERVICE 2803
  127. //
  128. // REGRESSION_DIALOG IDs
  129. //
  130. #define REGRESSION_DIALOG 2900
  131. #define ID_LB_REGRESSION 2901
  132. #define ID_CHK_RANGE 2902
  133. #define ID_CHK_CLASS 2903
  134. #define ID_CHK_TRAVERSE 2904
  135. #define ID_CHK_HWPROF 2905
  136. #define ID_CHK_DEVLIST 2906
  137. #define ID_CHK_LOGCONF 2907
  138. #define ID_BT_START 2908
  139. #define ID_CHK_PROPERTIES 2909
  140. #define ID_CHK_DEVCLASS 2910
  141. //
  142. // RELATIONS_DIALOG IDs
  143. //
  144. #define RELATIONS_DIALOG 3000
  145. #define ID_LB_TARGETS 3001
  146. #define ID_LB_RELATIONS 3002
  147. #define ID_BT_BUS 3003
  148. #define ID_BT_REMOVAL 3004
  149. #define ID_BT_EJECTION 3005
  150. #define ID_BT_POWER 3006
  151. //
  152. // Prototypes
  153. //
  154. BOOL InitApplication(HANDLE);
  155. BOOL InitInstance(HANDLE, int);
  156. INT_PTR CALLBACK MainWndProc(HWND, UINT, WPARAM, LPARAM);
  157. INT_PTR CALLBACK ConnectDlgProc(HWND, UINT, WPARAM, LPARAM);
  158. INT_PTR CALLBACK DeviceListDlgProc(HWND, UINT, WPARAM, LPARAM);
  159. INT_PTR CALLBACK DeviceDlgProc(HWND, UINT, WPARAM, LPARAM);
  160. INT_PTR CALLBACK ClassDlgProc(HWND, UINT, WPARAM, LPARAM);
  161. INT_PTR CALLBACK ClassKeyDlgProc(HWND, UINT, WPARAM, LPARAM);
  162. INT_PTR CALLBACK SoftwareKeyDlgProc(HWND, UINT, WPARAM, LPARAM);
  163. INT_PTR CALLBACK DevKeyDlgProc(HWND, UINT, WPARAM, LPARAM);
  164. INT_PTR CALLBACK CreateDlgProc(HWND, UINT, WPARAM, LPARAM);
  165. INT_PTR CALLBACK ServiceListDlgProc(HWND, UINT, WPARAM, LPARAM);
  166. INT_PTR CALLBACK RelationsListDlgProc(HWND, UINT, WPARAM, LPARAM);
  167. INT_PTR CALLBACK RegressionDlgProc(HWND, UINT, WPARAM, LPARAM);