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.

460 lines
21 KiB

  1. //+------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (c) Microsoft Corporation. All rights reserved.
  5. //
  6. // File: aldefs.idl
  7. //
  8. // Contents: Alert system definitions.
  9. //
  10. // History: 01-Aug-94 MarkBl Created
  11. //
  12. // Notes: This is not a real interface. Merely a way to declare
  13. // alert system definitions.
  14. //
  15. //-------------------------------------------------------------------------
  16. [
  17. local,
  18. // object,
  19. uuid(0F061498-8D59-101B-A4BE-00000B65C31D),
  20. pointer_default(unique)
  21. ]
  22. interface AlertDefs
  23. {
  24. //
  25. // Alert severities.
  26. //
  27. // for mktyplib...
  28. #define ALERTSEVERITY_INFORMATION 0x0004
  29. #define ALERTSEVERITY_WARNING 0x0002
  30. #define ALERTSEVERITY_ERROR 0x0001
  31. #define ALERTSEVERITY_SEVERE_ERROR 0x0020
  32. #define ALERTSEVERITY_FATAL_ERROR 0x0040
  33. #define ALERTSEVERITY_NEGATIVE_MATCH 0x0080
  34. // BUGBUG : TEMORARILLY define old severity manifests
  35. #define ALERTSEVERITY_STATUS ALERTSEVERITY_INFORMATION
  36. #define ALERTSEVERITY_NOTIFICATION ALERTSEVERITY_WARNING
  37. #define ALERTSEVERITY_SEVERE ALERTSEVERITY_SEVERE_ERROR
  38. #define ALERTSEVERITY_FATAL ALERTSEVERITY_FATAL_ERROR
  39. // ... for the C compiler
  40. cpp_quote("#define ALERTSEVERITY_INFORMATION 0x0004")
  41. cpp_quote("#define ALERTSEVERITY_WARNING 0x0002")
  42. cpp_quote("#define ALERTSEVERITY_ERROR 0x0001")
  43. cpp_quote("#define ALERTSEVERITY_SEVERE_ERROR 0x0020")
  44. cpp_quote("#define ALERTSEVERITY_FATAL_ERROR 0x0040")
  45. cpp_quote("#define ALERTSEVERITY_NEGATIVE_MATCH 0x0080")
  46. // BUGBUG : TEMORARILLY define old severity manifests
  47. cpp_quote("#define ALERTSEVERITY_STATUS ALERTSEVERITY_INFORMATION")
  48. cpp_quote("#define ALERTSEVERITY_NOTIFICATION ALERTSEVERITY_WARNING")
  49. cpp_quote("#define ALERTSEVERITY_SEVERE ALERTSEVERITY_SEVERE_ERROR")
  50. cpp_quote("#define ALERTSEVERITY_FATAL ALERTSEVERITY_FATAL_ERROR")
  51. //
  52. // BUGBUG : these don't need to be public.
  53. //
  54. // for mktyplib...
  55. #define cAlertCategories (18)
  56. // ... for the C compiler
  57. cpp_quote("#define cAlertCategories (18)")
  58. //
  59. // Alert categories & subcategories
  60. //
  61. // for mktyplib...
  62. #define Category_SystemEvents (0)
  63. #define SystemEvents_Legacy (1)
  64. #define Category_UserNotification (1)
  65. #define UserNotification_PrintJobDone (1)
  66. #define UserNotification_Fax (2)
  67. #define Category_ApplicationNotification (2)
  68. #define ApplicationNotification_Memory (1)
  69. #define Category_ApplicationManagement (3)
  70. #define ApplicationManagement_TokenGranted (1)
  71. #define ApplicationManagement_TokenDenied (2)
  72. #define Category_PrintersAndSharedResources (4)
  73. #define PrintersAndSharedResources_Toner (1)
  74. #define PrintersAndSharedResources_DeviceDriver (2)
  75. #define PrintersAndSharedResources_Paper (3)
  76. #define Category_SecurityManagement (5)
  77. #define SecurityManagement_ACL (1)
  78. #define Category_UserAccounts (6)
  79. #define UserAccounts_Created (1)
  80. #define UserAccounts_Deleted (2)
  81. #define Category_Storage (7)
  82. #define Storage_Replication (1)
  83. #define Storage_Quotas (2)
  84. #define Storage_OFS (3)
  85. #define Storage_NTFS (4)
  86. #define Storage_FAT (5)
  87. #define Category_DistributedServices (8)
  88. #define DistributedServices_DFS (1)
  89. #define DistributedServices_DS (2)
  90. #define Category_LAN (9)
  91. #define LAN_Bridge (1)
  92. #define LAN_Cabling (2)
  93. #define Category_WAN (10)
  94. #define WAN_Router (1)
  95. #define WAN_Switch (2)
  96. #define WAN_Telephony (3)
  97. #define Category_Catalog (11)
  98. #define Catalog_Catalog (1)
  99. #define Category_BatchJob (12)
  100. #define BatchJob_FailedToStart (1)
  101. #define BatchJob_FailedTocomplete (2)
  102. #define Category_Backup (13)
  103. #define Backup_FailedToStart (1)
  104. #define Backup_Started (2)
  105. #define Backup_FailedToComplete (3)
  106. #define Backup_Completed (4)
  107. #define Category_SystemSoftware (14)
  108. #define SystemSoftware_Kernel (1)
  109. #define SystemSoftware_Drivers (2)
  110. #define Category_SystemHardware (15)
  111. #define SystemHardware_CD ROM (1)
  112. #define SystemHardware_Memory (2)
  113. #define SystemHardware_Bus (3)
  114. #define SystemHardware_SCSI (4)
  115. #define SystemHardware_IDE (5)
  116. #define SystemHardware_NIC (6)
  117. #define Category_SystemMonitoring (16)
  118. #define SystemMonitoring_SYSMON (1)
  119. #define SystemMonitoring_Bloodhound (2)
  120. #define Category_HelpdeskAndDiagnostics (17)
  121. #define HelpdeskAndDiagnostics_DrWatson (1)
  122. #define Category_AlertNotify (18)
  123. #define AlertNotify_ForwardIncomplete (1)
  124. #define AlertNotify_RegistrationCanceled (2)
  125. // ... for the C compiler
  126. cpp_quote("#define Category_SystemEvents (0)")
  127. cpp_quote("#define SystemEvents_Legacy (1)")
  128. cpp_quote("#define Category_UserNotification (1)")
  129. cpp_quote("#define UserNotification_PrintJobDone (1)")
  130. cpp_quote("#define UserNotification_Fax (2)")
  131. cpp_quote("#define Category_ApplicationNotification (2)")
  132. cpp_quote("#define ApplicationNotification_Memory (1)")
  133. cpp_quote("#define Category_ApplicationManagement (3)")
  134. cpp_quote("#define ApplicationManagement_TokenGranted (1)")
  135. cpp_quote("#define ApplicationManagement_TokenDenied (2)")
  136. cpp_quote("#define Category_PrintersAndSharedResources (4)")
  137. cpp_quote("#define PrintersAndSharedResources_Toner (1)")
  138. cpp_quote("#define PrintersAndSharedResources_DeviceDriver (2)")
  139. cpp_quote("#define PrintersAndSharedResources_Paper (3)")
  140. cpp_quote("#define Category_SecurityManagement (5)")
  141. cpp_quote("#define SecurityManagement_ACL (1)")
  142. cpp_quote("#define Category_UserAccounts (6)")
  143. cpp_quote("#define UserAccounts_Created (1)")
  144. cpp_quote("#define UserAccounts_Deleted (2)")
  145. cpp_quote("#define Category_Storage (7)")
  146. cpp_quote("#define Storage_Replication (1)")
  147. cpp_quote("#define Storage_Quotas (2)")
  148. cpp_quote("#define Storage_OFS (3)")
  149. cpp_quote("#define Storage_NTFS (4)")
  150. cpp_quote("#define Storage_FAT (5)")
  151. cpp_quote("#define Category_DistributedServices (8)")
  152. cpp_quote("#define DistributedServices_DFS (1)")
  153. cpp_quote("#define DistributedServices_DS (2)")
  154. cpp_quote("#define Category_LAN (9)")
  155. cpp_quote("#define LAN_Bridge (1)")
  156. cpp_quote("#define LAN_Cabling (2)")
  157. cpp_quote("#define Category_WAN (10)")
  158. cpp_quote("#define WAN_Router (1)")
  159. cpp_quote("#define WAN_Switch (2)")
  160. cpp_quote("#define WAN_Telephony (3)")
  161. cpp_quote("#define Category_Catalog (11)")
  162. cpp_quote("#define Catalog_Catalog (1)")
  163. cpp_quote("#define Category_BatchJob (12)")
  164. cpp_quote("#define BatchJob_FailedToStart (1)")
  165. cpp_quote("#define BatchJob_FailedTocomplete (2)")
  166. cpp_quote("#define Category_Backup (13)")
  167. cpp_quote("#define Backup_FailedToStart (1)")
  168. cpp_quote("#define Backup_Started (2)")
  169. cpp_quote("#define Backup_FailedToComplete (3)")
  170. cpp_quote("#define Backup_Completed (4)")
  171. cpp_quote("#define Category_SystemSoftware (14)")
  172. cpp_quote("#define SystemSoftware_Kernel (1)")
  173. cpp_quote("#define SystemSoftware_Drivers (2)")
  174. cpp_quote("#define Category_SystemHardware (15)")
  175. cpp_quote("#define SystemHardware_CD ROM (1)")
  176. cpp_quote("#define SystemHardware_Memory (2)")
  177. cpp_quote("#define SystemHardware_Bus (3)")
  178. cpp_quote("#define SystemHardware_SCSI (4)")
  179. cpp_quote("#define SystemHardware_IDE (5)")
  180. cpp_quote("#define SystemHardware_NIC (6)")
  181. cpp_quote("#define Category_SystemMonitoring (16)")
  182. cpp_quote("#define SystemMonitoring_SYSMON (1)")
  183. cpp_quote("#define SystemMonitoring_Bloodhound (2)")
  184. cpp_quote("#define Category_HelpdeskAndDiagnostics (17)")
  185. cpp_quote("#define HelpdeskAndDiagnostics_DrWatson (1)")
  186. cpp_quote("#define Category_AlertNotify (18)")
  187. cpp_quote("#define AlertNotify_ForwardIncomplete (1)")
  188. cpp_quote("#define AlertNotify_RegistrationCanceled (2)")
  189. //
  190. // Alert Report property & method ids.
  191. //
  192. // Base system alert properties.
  193. //
  194. // for mktyplib...
  195. #define DISPID_SystemAlertReport_Category (1001)
  196. #define DISPID_SystemAlertReport_SubCategory (1002)
  197. #define DISPID_SystemAlertReport_Severity (1003)
  198. #define DISPID_SystemAlertReport_TitleText (1004)
  199. #define DISPID_SystemAlertReport_DescriptionText (1005)
  200. #define DISPID_SystemAlertReport_SourceDescription (1006)
  201. #define DISPID_SystemAlertReport_SourceMachine (1007)
  202. #define DISPID_SystemAlertReport_CreationTime (1008)
  203. #define DISPID_SystemAlertReport_TitleMessageNumber (1009)
  204. #define DISPID_SystemAlertReport_TitleMessageInserts (1010)
  205. #define DISPID_SystemAlertReport_DescrMessageNumber (1011)
  206. #define DISPID_SystemAlertReport_DescrMessageInserts (1012)
  207. #define DISPID_SystemAlertReport_ComponentID (1013)
  208. #define DISPID_SystemAlertReport_ReportClassID (1014)
  209. #define DISPID_SystemAlertReport_BinaryData (1015)
  210. #define DISPID_SystemAlertReport_SourceLanguageID (1016)
  211. #define DISPID_SystemAlertReport_UniqueID (1017)
  212. #define DISPID_SystemAlertReport_TargetCount (1018)
  213. #define DISPID_SystemAlertReport_TakeActionDLL (1019)
  214. #define DISPID_SystemAlertReport_Reserved (1200)
  215. #define DISPID_SystemAlertReport_GetTitle (1501)
  216. #define DISPID_SystemAlertReport_GetDescription (1502)
  217. #define DISPID_SystemAlertReport_Send (1503)
  218. #define DISPID_SystemAlertReport_Save (1504)
  219. #define DISPID_SystemAlertReport_GetVersion (1505)
  220. #define DISPID_SystemAlertReport_SetExpiration (1506)
  221. #define DISPID_SystemAlertReport_GetExpiration (1507)
  222. #define DISPID_SystemAlertReport_SetState (1508)
  223. #define DISPID_SystemAlertReport_GetState (1509)
  224. #define DISPID_SystemAlertReport_GetActions (1510)
  225. #define DISPID_SystemAlertReport_PerformAction (1511)
  226. // ... for the C compiler
  227. cpp_quote("#define DISPID_SystemAlertReport_Category (1001)")
  228. cpp_quote("#define DISPID_SystemAlertReport_SubCategory (1002)")
  229. cpp_quote("#define DISPID_SystemAlertReport_Severity (1003)")
  230. cpp_quote("#define DISPID_SystemAlertReport_TitleText (1004)")
  231. cpp_quote("#define DISPID_SystemAlertReport_DescriptionText (1005)")
  232. cpp_quote("#define DISPID_SystemAlertReport_SourceDescription (1006)")
  233. cpp_quote("#define DISPID_SystemAlertReport_SourceMachine (1007)")
  234. cpp_quote("#define DISPID_SystemAlertReport_CreationTime (1008)")
  235. cpp_quote("#define DISPID_SystemAlertReport_TitleMessageNumber (1009)")
  236. cpp_quote("#define DISPID_SystemAlertReport_TitleMessageInserts (1010)")
  237. cpp_quote("#define DISPID_SystemAlertReport_DescrMessageNumber (1011)")
  238. cpp_quote("#define DISPID_SystemAlertReport_DescrMessageInserts (1012)")
  239. cpp_quote("#define DISPID_SystemAlertReport_ComponentID (1013)")
  240. cpp_quote("#define DISPID_SystemAlertReport_ReportClassID (1014)")
  241. cpp_quote("#define DISPID_SystemAlertReport_BinaryData (1015)")
  242. cpp_quote("#define DISPID_SystemAlertReport_SourceLanguageID (1016)")
  243. cpp_quote("#define DISPID_SystemAlertReport_UniqueID (1017)")
  244. cpp_quote("#define DISPID_SystemAlertReport_TargetCount (1018)")
  245. cpp_quote("#define DISPID_SystemAlertReport_TakeActionDLL (1019)")
  246. cpp_quote("#define DISPID_SystemAlertReport_Reserved (1200)")
  247. cpp_quote("#define DISPID_SystemAlertReport_GetTitle (1501)")
  248. cpp_quote("#define DISPID_SystemAlertReport_GetDescription (1502)")
  249. cpp_quote("#define DISPID_SystemAlertReport_Send (1503)")
  250. cpp_quote("#define DISPID_SystemAlertReport_Save (1504)")
  251. cpp_quote("#define DISPID_SystemAlertReport_GetVersion (1505)")
  252. cpp_quote("#define DISPID_SystemAlertReport_SetExpiration (1506)")
  253. cpp_quote("#define DISPID_SystemAlertReport_GetExpiration (1507)")
  254. cpp_quote("#define DISPID_SystemAlertReport_SetState (1508)")
  255. cpp_quote("#define DISPID_SystemAlertReport_GetState (1509)")
  256. cpp_quote("#define DISPID_SystemAlertReport_GetActions (1510)")
  257. cpp_quote("#define DISPID_SystemAlertReport_PerformAction (1511)")
  258. //
  259. // NT event report alert property ids.
  260. //
  261. // for mktyplib...
  262. #define DISPID_NTEventReport_EventCategory (2)
  263. #define DISPID_NTEventReport_LogFile (3)
  264. // ... for the C compiler
  265. cpp_quote("#define DISPID_NTEventReport_EventCategory (2)")
  266. cpp_quote("#define DISPID_NTEventReport_LogFile (3)")
  267. //
  268. // Forwarding rules collection dispinterface property/method ids.
  269. //
  270. // for mktyplib...
  271. #define DISPID_RULES_BASE (2)
  272. #define DISPID_Rule_Collection (DISPID_RULES_BASE + 0)
  273. #define DISPID_Rule_Collection_Count (DISPID_RULES_BASE + 1)
  274. #define DISPID_Rule_Collection_Add (DISPID_RULES_BASE + 2)
  275. #define DISPID_Rule_Collection_Item (DISPID_RULES_BASE + 3)
  276. #define DISPID_Rule_Collection__NewEnum (DISPID_NEWENUM)
  277. // ... for the C compiler
  278. cpp_quote("#define DISPID_RULES_BASE (2)")
  279. cpp_quote("#define DISPID_Rule_Collection (DISPID_RULES_BASE + 0)")
  280. cpp_quote("#define DISPID_Rule_Collection_Count (DISPID_RULES_BASE + 1)")
  281. cpp_quote("#define DISPID_Rule_Collection_Add (DISPID_RULES_BASE + 2)")
  282. cpp_quote("#define DISPID_Rule_Collection_Item (DISPID_RULES_BASE + 3)")
  283. cpp_quote("#define DISPID_Rule_Collection__NewEnum (DISPID_NEWENUM)")
  284. //
  285. // Forwarding rule object dispinterface property/method ids.
  286. //
  287. // for mktyplib...
  288. #define DISPID_RULE_BASE (2)
  289. #define DISPID_Rule_Category (DISPID_RULE_BASE + 0)
  290. #define DISPID_Rule_Remove (DISPID_RULE_BASE + 1)
  291. #define DISPID_SubRule_Collection_Count (DISPID_RULE_BASE + 2)
  292. #define DISPID_SubRule_Collection_Add (DISPID_RULE_BASE + 3)
  293. #define DISPID_SubRule_Collection_Item (DISPID_RULE_BASE + 4)
  294. #define DISPID_SubRule_Collection__NewEnum (DISPID_RULE_BASE + 5)
  295. // ... for the C compiler
  296. cpp_quote("#define DISPID_RULE_BASE (2)")
  297. cpp_quote("#define DISPID_Rule_Category (DISPID_RULE_BASE + 0)")
  298. cpp_quote("#define DISPID_Rule_Remove (DISPID_RULE_BASE + 1)")
  299. cpp_quote("#define DISPID_SubRule_Collection_Count (DISPID_RULE_BASE + 2)")
  300. cpp_quote("#define DISPID_SubRule_Collection_Add (DISPID_RULE_BASE + 3)")
  301. cpp_quote("#define DISPID_SubRule_Collection_Item (DISPID_RULE_BASE + 4)")
  302. cpp_quote("#define DISPID_SubRule_Collection__NewEnum (DISPID_RULE_BASE + 5)")
  303. //
  304. // Forwarding sub rule object dispinterface property/method ids.
  305. //
  306. // for mktyplib...
  307. #define DISPID_SUBRULE_BASE (2)
  308. #define DISPID_SubRule_SubCategory (DISPID_SUBRULE_BASE + 0)
  309. #define DISPID_SubRule_Severity (DISPID_SUBRULE_BASE + 1)
  310. // ... for the C compiler
  311. cpp_quote("#define DISPID_SUBRULE_BASE (2)")
  312. cpp_quote("#define DISPID_SubRule_SubCategory (DISPID_SUBRULE_BASE + 0)")
  313. cpp_quote("#define DISPID_SubRule_Severity (DISPID_SUBRULE_BASE + 1)")
  314. //
  315. // Alert recipient object dispinterface property/method ids.
  316. //
  317. // for mktyplib...
  318. #define DISPID_REGISTRATION_BASE (2)
  319. #define DISPID_Registration_ID (DISPID_REGISTRATION_BASE + 0)
  320. #define DISPID_Registration_TargetPath (DISPID_REGISTRATION_BASE + 1)
  321. #define DISPID_Registration_ForwardingRules (DISPID_REGISTRATION_BASE + 2)
  322. #define DISPID_Registration_EnableForwarding (DISPID_REGISTRATION_BASE + 3)
  323. #define DISPID_Registration__FirstErrorTime (DISPID_REGISTRATION_BASE + 4)
  324. #define DISPID_Registration__ErrorCount (DISPID_REGISTRATION_BASE + 5)
  325. #define DISPID_Registration__Target (DISPID_REGISTRATION_BASE + 6)
  326. #define DISPID_Registration_Remove (DISPID_REGISTRATION_BASE + 7)
  327. // ... for the C compiler
  328. cpp_quote("#define DISPID_REGISTRATION_BASE (2)")
  329. cpp_quote("#define DISPID_Registration_ID (DISPID_REGISTRATION_BASE + 0)")
  330. cpp_quote("#define DISPID_Registration_TargetPath (DISPID_REGISTRATION_BASE + 1)")
  331. cpp_quote("#define DISPID_Registration_ForwardingRules (DISPID_REGISTRATION_BASE + 2)")
  332. cpp_quote("#define DISPID_Registration_EnableForwarding (DISPID_REGISTRATION_BASE + 3)")
  333. cpp_quote("#define DISPID_Registration__FirstErrorTime (DISPID_REGISTRATION_BASE + 4)")
  334. cpp_quote("#define DISPID_Registration__ErrorCount (DISPID_REGISTRATION_BASE + 5)")
  335. cpp_quote("#define DISPID_Registration__Target (DISPID_REGISTRATION_BASE + 6)")
  336. cpp_quote("#define DISPID_Registration_Remove (DISPID_REGISTRATION_BASE + 7)")
  337. //
  338. // Alert recipient collection dispinterface property/method ids.
  339. //
  340. // for mktyplib...
  341. #define DISPID_REG_COLLECTION_BASE (2)
  342. #define DISPID_Registration_Collection (DISPID_REG_COLLECTION_BASE + 0)
  343. #define DISPID_Registration_Collection_Count (DISPID_REG_COLLECTION_BASE + 1)
  344. #define DISPID_Registration_Collection_Add (DISPID_REG_COLLECTION_BASE + 2)
  345. #define DISPID_Registration_Collection_Item (DISPID_REG_COLLECTION_BASE + 3)
  346. #define DISPID_Registration_Collection__NewEnum (DISPID_NEWENUM)
  347. // ... for the C compiler
  348. cpp_quote("#define DISPID_REG_COLLECTION_BASE (2)")
  349. cpp_quote("#define DISPID_Registration_Collection (DISPID_REG_COLLECTION_BASE + 0)")
  350. cpp_quote("#define DISPID_Registration_Collection_Count (DISPID_REG_COLLECTION_BASE + 1)")
  351. cpp_quote("#define DISPID_Registration_Collection_Add (DISPID_REG_COLLECTION_BASE + 2)")
  352. cpp_quote("#define DISPID_Registration_Collection_Item (DISPID_REG_COLLECTION_BASE + 3)")
  353. cpp_quote("#define DISPID_Registration_Collection__NewEnum (DISPID_NEWENUM)")
  354. void DummyMethod(void);
  355. }