home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / WindowsServerTrial / server.iso / sources / install.wim / 2 / Windows / System32 / wbem / scm.mof < prev    next >
Encoding:
Text File  |  2006-09-18  |  19.7 KB  |  844 lines

  1. // ⌐ 2000 Microsoft Corporation.  All rights reserved.
  2.  
  3. #pragma autorecover
  4. #pragma namespace ("\\\\.\\root\\cimv2")
  5.  
  6. /////////////////////////////////////////////////////////////////////////////
  7. // Base classes for SCM events
  8.  
  9. class MSFT_SCMEvent : __ExtrinsicEvent
  10. {
  11. };
  12.  
  13. // Base class for events destined for the system Event Log.
  14. class MSFT_SCMEventLogEvent : MSFT_SCMEvent
  15. {
  16. };
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // Net events
  20.  
  21. //
  22. // MessageId: EVENT_BAD_ACCOUNT_NAME
  23. //
  24. // MessageText:
  25. //
  26. //  No backslash is in the account name.
  27. //
  28. [
  29.     EventId(0xC0001B60) : ToInstance,
  30.     EventType(1) : ToInstance
  31. ]
  32. class MSFT_NetBadAccount : MSFT_SCMEventLogEvent
  33. {
  34. };
  35.  
  36.  
  37. //
  38. // MessageId: EVENT_CALL_TO_FUNCTION_FAILED
  39. //
  40. // MessageText:
  41. //
  42. //  The %1 call failed with the following error: %n%2
  43. //
  44. [
  45.     EventId(0xC0001B5D) : ToInstance,
  46.     EventType(1) : ToInstance,
  47.     InsertionStringTemplates {"%FunctionName%", "%%%%%Error%"} : ToInstance
  48. ]
  49. class MSFT_NetCallToFunctionFailed : MSFT_SCMEventLogEvent
  50. {
  51.     string FunctionName;
  52.     uint32 Error;
  53. };
  54.  
  55.  
  56. //
  57. // MessageId: EVENT_CALL_TO_FUNCTION_FAILED_II
  58. //
  59. // MessageText:
  60. //
  61. //  The %1 call failed for %2 with the following error: %n%3
  62. //
  63. [
  64.     EventId(0xC0001B5E) : ToInstance,
  65.     EventType(1) : ToInstance,
  66.     InsertionStringTemplates {"%FunctionName%", "%Argument%", "%%%%%Error%"} : ToInstance
  67. ]
  68. class MSFT_NetCallToFunctionFailedII : MSFT_SCMEventLogEvent
  69. {
  70.     string FunctionName;
  71.     string Argument;
  72.     uint32 Error;
  73. };
  74.  
  75.  
  76. //
  77. // MessageId: EVENT_FIRST_LOGON_FAILED
  78. //
  79. // MessageText:
  80. //
  81. //  Logon attempt with current password failed with the following error: %n%1
  82. //
  83. [
  84.     EventId(0xC0001B65) : ToInstance,
  85.     EventType(1) : ToInstance,
  86.     InsertionStringTemplates {"%%%%%Error%"} : ToInstance
  87. ]
  88. class MSFT_NetFirstLogonFailed : MSFT_SCMEventLogEvent
  89. {
  90.     uint32 Error;
  91. };
  92.  
  93.  
  94. //
  95. // MessageId: EVENT_REVERTED_TO_LASTKNOWNGOOD
  96. //
  97. // MessageText:
  98. //
  99. //  The system reverted to its last known good configuration.  The system is restarting....
  100. //
  101. [
  102.     EventId(0xC0001B5F) : ToInstance,
  103.     EventType(1) : ToInstance
  104. ]
  105. class MSFT_NetRevertedToLastKnownGood : MSFT_SCMEventLogEvent
  106. {
  107. };
  108.  
  109.  
  110. //
  111. // MessageId: EVENT_CONNECTION_TIMEOUT
  112. //
  113. // MessageText:
  114. //
  115. //  Timeout (%1 milliseconds) waiting for the %2 service to connect.
  116. //
  117. [
  118.     EventId(0xC0001B61) : ToInstance,
  119.     EventType(1) : ToInstance,
  120.     InsertionStringTemplates {"%Milliseconds%", "%Service%"} : ToInstance
  121. ]
  122. class MSFT_NetConnectionTimeout : MSFT_SCMEventLogEvent
  123. {
  124.     uint32 Milliseconds;
  125.     string Service;
  126. };
  127.  
  128.  
  129. //
  130. // MessageId: EVENT_READFILE_TIMEOUT
  131. //
  132. // MessageText:
  133. //
  134. //  Timeout (%1 milliseconds) waiting for ReadFile.
  135. //
  136. [
  137.     EventId(0xC0001B62) : ToInstance,
  138.     EventType(1) : ToInstance,
  139.     InsertionStringTemplates {"%Milliseconds%"} : ToInstance
  140. ]
  141. class MSFT_NetReadfileTimeout : MSFT_SCMEventLogEvent
  142. {
  143.     uint32 Milliseconds;
  144. };
  145.  
  146.  
  147. //
  148. // MessageId: EVENT_TRANSACT_TIMEOUT
  149. //
  150. // MessageText:
  151. //
  152. //  Timeout (%1 milliseconds) waiting for a transaction response from the %2 service.
  153. //
  154. [
  155.     EventId(0xC0001B63) : ToInstance,
  156.     EventType(1) : ToInstance,
  157.     InsertionStringTemplates {"%Milliseconds%", "%Service%"} : ToInstance
  158. ]
  159. class MSFT_NetTransactTimeout : MSFT_SCMEventLogEvent
  160. {
  161.     uint32 Milliseconds;
  162.     string Service;
  163. };
  164.  
  165.  
  166. //
  167. // MessageId: EVENT_TRANSACT_INVALID
  168. //
  169. // MessageText:
  170. //
  171. //  Message returned in transaction has incorrect size.
  172. //
  173. [
  174.     EventId(0xC0001B64) : ToInstance,
  175.     EventType(1) : ToInstance
  176. ]
  177. class MSFT_NetTransactInvalid : MSFT_SCMEventLogEvent
  178. {
  179. };
  180.  
  181.  
  182. //
  183. // Parameter %4 is the value, in decimal, of the SC_ACTION_ constant for
  184. // the action described in parameter %5.
  185. //
  186. //
  187. // MessageId: EVENT_SERVICE_CRASH
  188. //
  189. // MessageText:
  190. //
  191. //  The %1 service terminated unexpectedly.  It has done this %2 time(s).  The following corrective action will be taken in %3 milliseconds: %5.
  192. //
  193. [
  194.     EventId(0xC0001B77) : ToInstance,
  195.     EventType(1) : ToInstance,
  196.     InsertionStringTemplates {"%Service%", "%TimesFailed%", "%ActionDelay%", "%ActionType%", "%Action%"} : ToInstance
  197. ]
  198. class MSFT_NetServiceCrash : MSFT_SCMEventLogEvent
  199. {
  200.     string Service;
  201.     uint32 TimesFailed;
  202.     uint32 ActionDelay;
  203.     uint32 ActionType;
  204.     string Action;
  205. };
  206.  
  207.  
  208. //
  209. // MessageId: EVENT_SERVICE_CRASH_NO_ACTION
  210. //
  211. // MessageText:
  212. //
  213. //  The %1 service terminated unexpectedly.  It has done this %2 time(s).
  214. //
  215. [
  216.     EventId(0xC0001B7A) : ToInstance,
  217.     EventType(1) : ToInstance,
  218.     InsertionStringTemplates {"%Service%", "%TimesFailed%" } : ToInstance
  219. ]
  220. class MSFT_NetServiceCrashNoAction : MSFT_SCMEventLogEvent
  221. {
  222.     string Service;
  223.     uint32 TimesFailed;
  224. };
  225.  
  226.  
  227. //
  228. // MessageId: EVENT_SERVICE_NOT_INTERACTIVE
  229. //
  230. // MessageText:
  231. //
  232. //  The %1 service is marked as an interactive service.  However, the system is configured to not allow interactive services.  This service may not function properly.
  233. //
  234. [
  235.     EventId(0xC0001B76) : ToInstance,
  236.     EventType(1) : ToInstance,
  237.     InsertionStringTemplates {"%Service%"} : ToInstance
  238. ]
  239. class MSFT_NetServiceNotInteractive : MSFT_SCMEventLogEvent
  240. {
  241.     string Service;
  242. };
  243.  
  244.  
  245. //
  246. // Parameter %1 is the value, in decimal, of the SC_ACTION_ constant for
  247. // the action described in parameter %2.
  248. //
  249. //
  250. // MessageId: EVENT_SERVICE_RECOVERY_FAILED
  251. //
  252. // MessageText:
  253. //
  254. //  The Service Control Manager tried to take a corrective action (%2) after the unexpected termination of the %3 service, but this action failed with the following error: %n%4
  255. //
  256. [
  257.     EventId(0xC0001B78) : ToInstance,
  258.     EventType(1) : ToInstance,
  259.     InsertionStringTemplates {"%ActionType%", "%Action%", "%Service%", "%%%%%Error%"} : ToInstance
  260. ]
  261. class MSFT_NetServiceRecoveryFailed : MSFT_SCMEventLogEvent
  262. {
  263.     uint32 ActionType;
  264.     string Action;
  265.     string Service;
  266.     uint32 Error;
  267. };
  268.  
  269.  
  270. //
  271. // MessageId: EVENT_INVALID_DRIVER_DEPENDENCY
  272. //
  273. // MessageText:
  274. //
  275. //  Boot-start or system-start driver (%1) must not depend on a service.
  276. //
  277. [
  278.     EventId(0xC0001B67) : ToInstance,
  279.     EventType(1) : ToInstance,
  280.     InsertionStringTemplates {"%Driver%"} : ToInstance
  281. ]
  282. class MSFT_NetInvalidDriverDependency : MSFT_SCMEventLogEvent
  283. {
  284.     string Driver;
  285. };
  286.  
  287.  
  288. //
  289. // MessageId: EVENT_SERVICE_START_FAILED
  290. //
  291. // MessageText:
  292. //
  293. //  The %1 service failed to start due to the following error: %n%2
  294. //
  295. [
  296.     EventId(0xC0001B58) : ToInstance,
  297.     EventType(1) : ToInstance,
  298.     InsertionStringTemplates {"%Service%", "%%%%%Error%"} : ToInstance
  299. ]
  300. class MSFT_NetServiceStartFailed : MSFT_SCMEventLogEvent
  301. {
  302.     string Service;
  303.     uint32 Error;
  304. };
  305.  
  306.  
  307. //
  308. // MessageId: EVENT_SERVICE_START_FAILED_II
  309. //
  310. // MessageText:
  311. //
  312. //  The %1 service depends on the %2 service which failed to start because
  313. //  of the following error: %n%3
  314. //
  315. [
  316.     EventId(0xC0001B59) : ToInstance,
  317.     EventType(1) : ToInstance,
  318.     InsertionStringTemplates {"%Service%", "%DependedOnService%", "%%%%%Error%"} : ToInstance
  319. ]
  320. class MSFT_NetServiceStartFailedII : MSFT_SCMEventLogEvent
  321. {
  322.     string Service;
  323.     string DependedOnService;
  324.     uint32 Error;
  325. };
  326.  
  327.  
  328. //
  329. // MessageId: EVENT_CIRCULAR_DEPENDENCY_DEMAND
  330. //
  331. // MessageText:
  332. //
  333. //  Detected circular dependencies demand starting %1.
  334. //
  335. [
  336.     EventId(0xC0001B69) : ToInstance,
  337.     EventType(1) : ToInstance,
  338.     InsertionStringTemplates {"%Service%"} : ToInstance
  339. ]
  340. class MSFT_NetCircularDependencyDemand : MSFT_SCMEventLogEvent
  341. {
  342.     string Service;
  343. };
  344.  
  345.  
  346. //
  347. // MessageId: EVENT_CIRCULAR_DEPENDENCY_AUTO
  348. //
  349. // MessageText:
  350. //
  351. //  Detected circular dependencies auto-starting services.
  352. //
  353. [
  354.     EventId(0xC0001B6A) : ToInstance,
  355.     EventType(1) : ToInstance
  356. ]
  357. class MSFT_NetCircularDependencyAuto : MSFT_SCMEventLogEvent
  358. {
  359. };
  360.  
  361.  
  362. //
  363. // MessageId: EVENT_SERVICE_START_FAILED_NONE
  364. //
  365. // MessageText:
  366. //
  367. //  The %1 service depends on the following nonexistent service: %2
  368. //
  369. [
  370.     EventId(0xC0001B5B) : ToInstance,
  371.     EventType(1) : ToInstance,
  372.     InsertionStringTemplates {"%Service%", "%NonExistingService%"} : ToInstance
  373. ]
  374. class MSFT_NetServiceStartFailedNone : MSFT_SCMEventLogEvent
  375. {
  376.     string Service;
  377.     string NonExistingService;
  378. };
  379.  
  380.  
  381. //
  382. // MessageId: EVENT_DEPEND_ON_LATER_SERVICE
  383. //
  384. // MessageText:
  385. //
  386. //  Circular dependency: The %1 service depends on a service in a group which starts later.
  387. //
  388. [
  389.     EventId(0xC0001B6B) : ToInstance,
  390.     EventType(1) : ToInstance,
  391.     InsertionStringTemplates {"%Service%"} : ToInstance
  392. ]
  393. class MSFT_NetDependOnLaterService : MSFT_SCMEventLogEvent
  394. {
  395.     string Service;
  396. };
  397.  
  398.  
  399. //
  400. // MessageId: EVENT_SERVICE_START_FAILED_GROUP
  401. //
  402. // MessageText:
  403. //
  404. //  The %1 service depends on the %2 group and no member of this group started.
  405. //
  406. [
  407.     EventId(0xC0001B5A) : ToInstance,
  408.     EventType(1) : ToInstance,
  409.     InsertionStringTemplates {"%Service%", "%Group%"} : ToInstance
  410. ]
  411. class MSFT_NetServiceStartFailedGroup : MSFT_SCMEventLogEvent
  412. {
  413.     string Service;
  414.     string Group;
  415. };
  416.  
  417.  
  418. //
  419. // MessageId: EVENT_DEPEND_ON_LATER_SERVICE
  420. //
  421. // MessageText:
  422. //
  423. //  Circular dependency: The %1 service depends on a service in a group which starts later.
  424. //
  425. [
  426.     EventId(0xC0001B6B) : ToInstance,
  427.     EventType(1) : ToInstance,
  428.     InsertionStringTemplates {"%Service%"} : ToInstance
  429. ]
  430. class MSFT_NetDependOnLaterGroup : MSFT_SCMEventLogEvent
  431. {
  432.     string Service;
  433. };
  434.  
  435.  
  436. //
  437. // MessageId: EVENT_SERVICE_START_HUNG
  438. //
  439. // MessageText:
  440. //
  441. //  The %1 service hung on starting.
  442. //
  443. [
  444.     EventId(0xC0001B6E) : ToInstance,
  445.     EventType(1) : ToInstance,
  446.     InsertionStringTemplates {"%Service%"} : ToInstance
  447. ]
  448. class MSFT_NetServiceStartHung : MSFT_SCMEventLogEvent
  449. {
  450.     string Service;
  451. };
  452.  
  453.  
  454. //
  455. // MessageId: EVENT_SEVERE_SERVICE_FAILED
  456. //
  457. // MessageText:
  458. //
  459. //  About to revert to the last known good configuration because the %1 service failed to start.
  460. //
  461. [
  462.     EventId(0xC0001B6D) : ToInstance,
  463.     EventType(1) : ToInstance,
  464.     InsertionStringTemplates {"%Service%"} : ToInstance
  465. ]
  466. class MSFT_NetSevereServiceFailed : MSFT_SCMEventLogEvent
  467. {
  468.     string Service;
  469. };
  470.  
  471.  
  472. //
  473. // MessageId: EVENT_TAKE_OWNERSHIP
  474. //
  475. // MessageText:
  476. //
  477. //  The %1 Registry key denied access to SYSTEM account programs so the Service Control Manager took ownership of the Registry key.
  478. //
  479. [
  480.     EventId(0xC0001B74) : ToInstance,
  481.     EventType(1) : ToInstance,
  482.     InsertionStringTemplates {"%RegistryKey%"} : ToInstance
  483. ]
  484. class MSFT_NetTakeOwnership : MSFT_SCMEventLogEvent
  485. {
  486.     string RegistryKey;
  487. };
  488.  
  489.  
  490. //
  491. // MessageId: EVENT_BAD_SERVICE_STATE
  492. //
  493. // MessageText:
  494. //
  495. //  The %1 service has reported an invalid current state %2.
  496. //
  497. [
  498.     EventId(0xC0001B68) : ToInstance,
  499.     EventType(1) : ToInstance,
  500.     InsertionStringTemplates {"%Service%", "%State%"} : ToInstance
  501. ]
  502. class MSFT_NetBadServiceState : MSFT_SCMEventLogEvent
  503. {
  504.     string Service;
  505.     uint32 State;
  506. };
  507.  
  508.  
  509. //
  510. // MessageId: EVENT_SERVICE_EXIT_FAILED
  511. //
  512. // MessageText:
  513. //
  514. //  The %1 service terminated with the following error: %n%2
  515. //
  516. [
  517.     EventId(0xC0001B6F) : ToInstance,
  518.     EventType(1) : ToInstance,
  519.     InsertionStringTemplates {"%Service%", "%%%%%Error%"} : ToInstance
  520. ]
  521. class MSFT_NetServiceExitFailed : MSFT_SCMEventLogEvent
  522. {
  523.     string Service;
  524.     uint32 Error;
  525. };
  526.  
  527.  
  528. //
  529. // MessageId: EVENT_SERVICE_EXIT_FAILED_SPECIFIC
  530. //
  531. // MessageText:
  532. //
  533. //  The %1 service terminated with service-specific error %2.
  534. //
  535. [
  536.     EventId(0xC0001B70) : ToInstance,
  537.     EventType(1) : ToInstance,
  538.     InsertionStringTemplates {"%Service%", "%Error% (%Error(0x%X)%)"} : ToInstance
  539. ]
  540. class MSFT_NetServiceExitFailedSpecific : MSFT_SCMEventLogEvent
  541. {
  542.     string Service;
  543.     uint32 Error;
  544. };
  545.  
  546.  
  547. //
  548. // MessageId: EVENT_BOOT_SYSTEM_DRIVERS_FAILED
  549. //
  550. // MessageText:
  551. //
  552. //  The following boot-start or system-start driver(s) failed to load: %1
  553. //
  554. [
  555.     EventId(0xC0001B72) : ToInstance,
  556.     EventType(1) : ToInstance,
  557.     InsertionStringTemplates {"%DriverList%"} : ToInstance
  558. ]
  559. class MSFT_NetBootSystemDriversFailed : MSFT_SCMEventLogEvent
  560. {
  561.     string DriverList;
  562. };
  563.  
  564.  
  565. //
  566. // MessageId: EVENT_SERVICE_CONTROL_SUCCESS
  567. //
  568. // MessageText:
  569. //
  570. //  The %1 service was successfully sent a %2 control.
  571. //
  572. [
  573.     EventId(0x40001B7B) : ToInstance,
  574.     EventType(4) : ToInstance,
  575.     InsertionStringTemplates {"%Service%", "%Control%"} : ToInstance
  576. ]
  577. class MSFT_NetServiceControlSuccess : MSFT_SCMEventLogEvent
  578. {
  579.     string Service;
  580.     string Control;
  581.     string sid;
  582. };
  583.  
  584.  
  585. //
  586. // MessageId: EVENT_SERVICE_STATUS_SUCCESS
  587. //
  588. // MessageText:
  589. //
  590. //  The %1 service entered the %2 state.
  591. //
  592. [
  593.     EventId(0x40001B7C) : ToInstance,
  594.     EventType(4) : ToInstance,
  595.     InsertionStringTemplates {"%Service%", "%Control%"} : ToInstance
  596. ]
  597. class MSFT_NetServiceStatusSuccess : MSFT_SCMEventLogEvent
  598. {
  599.     string Service;
  600.     string Control;
  601. };
  602.  
  603.  
  604. //
  605. // MessageId: EVENT_SERVICE_CONFIG_BACKOUT_FAILED
  606. //
  607. // MessageText:
  608. //
  609. //  The Service Control Manager encountered an error undoing a change to the
  610. //  %1 for the %2 service after a failed attempt to update the service's
  611. //  configuration information, leaving the service's configuration information
  612. //  in an unpredictable state.  Use the Services MMC snap-in to make sure
  613. //  the service is configured as expected.
  614. //
  615. [
  616.     EventId(0xC0001B7D) : ToInstance,
  617.     EventType(1) : ToInstance,
  618.     InsertionStringTemplates {"%Service%", "%ConfigField%"} : ToInstance
  619. ]
  620. class MSFT_NetServiceConfigBackoutFailed : MSFT_SCMEventLogEvent
  621. {
  622.     string Service;
  623.     string ConfigField;
  624. };
  625.  
  626.  
  627. //
  628. // MessageId: EVENT_FIRST_LOGON_FAILED_II
  629. //
  630. // MessageText:
  631. //
  632. //  The %1 service was unable to log on as %2 with the currently configured
  633. //  password due to the following error: %n%3.  To ensure that the service is
  634. //  configured properly, use the Services snap-in in Microsoft Management
  635. //  Console (MMC).
  636. //
  637. [
  638.     EventId(0xC0001B7E) : ToInstance,
  639.     EventType(1) : ToInstance,
  640.     InsertionStringTemplates {"%Service%", "%Account%", "%%%%%Error%"} : ToInstance
  641. ]
  642. class MSFT_NetFirstLogonFailedII : MSFT_SCMEventLogEvent
  643. {
  644.     string Service;
  645.     string Account;
  646.     uint32 Error;
  647. };
  648.  
  649.  
  650. //
  651. // MessageId: EVENT_SERVICE_DIFFERENT_PID_CONNECTED
  652. //
  653. // MessageText:
  654. //
  655. //  A service process other than the one launched by the Service Control Manager
  656. //  connected when starting the %1 service.  The Service Control Manager launched
  657. //  process %2 and process %3 connected instead.
  658. //
  659. //  Note that if this service is configured to start under a debugger, this behavior
  660. //  is expected.
  661. //
  662. [
  663.     EventId(0x80001B7F) : ToInstance,
  664.     EventType(2) : ToInstance,
  665.     InsertionStringTemplates {"%Service%", "%ExpectedPID%", "%ActualPID%"} : ToInstance
  666. ]
  667. class MSFT_NetServiceDifferentPIDConnected : MSFT_SCMEventLogEvent
  668. {
  669.     string Service;
  670.     uint32 ExpectedPID;
  671.     uint32 ActualPID;
  672. };
  673.  
  674. //
  675. // MessageId: EVENT_SERVICE_START_TYPE_CHANGED
  676. //
  677. // MessageText:
  678. //
  679. // The start type of the %1 service was changed from %2 to %3.
  680. //
  681. [
  682.     EventId(0x40001B80) : ToInstance,
  683.     EventType(4) : ToInstance,
  684.     InsertionStringTemplates {"%Service%", "%OldStartType%", "%NewStartType%"} : ToInstance
  685. ]
  686. class MSFT_NetServiceStartTypeChanged : MSFT_SCMEventLogEvent
  687. {
  688.     string Service;
  689.     string OldStartType;
  690.     string NewStartType;
  691.     string sid;
  692. };
  693.  
  694. //
  695. // MessageId: EVENT_SERVICE_LOGON_TYPE_NOT_GRANTED
  696. //
  697. // MessageText:
  698. //
  699. //  The %1 service was unable to log on as %2 with the currently configured
  700. //  password due to the following error: %n%3.  To ensure that the service is
  701. //  configured properly, use the Services snap-in in Microsoft Management
  702. //  Console (MMC).
  703. //
  704. [
  705.     EventId(0xC0001B81) : ToInstance,
  706.     EventType(1) : ToInstance,
  707.     InsertionStringTemplates {"%Service%", "%Account%", "%%%%%Error%"} : ToInstance
  708. ]
  709. class MSFT_NetServiceLogonTypeNotGranted : MSFT_SCMEventLogEvent
  710. {
  711.     string Service;
  712.     string Account;
  713.     uint32 Error;
  714. };
  715.  
  716. //
  717. // MessageId: EVENT_SERVICE_STOP_SUCCESS_WITH_REASON
  718. //
  719. // MessageText:
  720. //
  721. //  The %1 service was successfully sent a %2 control.%n%n
  722. //  The reason specified was: %3 [%4]%n%n
  723. //  Comment: %5
  724. //
  725. [
  726.     EventId(0x40001B82) : ToInstance,
  727.     EventType(4) : ToInstance,
  728.     InsertionStringTemplates {"%Service%", "%Control%", "%Reason%", "%ReasonText%", "%Comment%"} : ToInstance
  729. ]
  730. class MSFT_NetServiceStopControlSuccess : MSFT_SCMEventLogEvent
  731. {
  732.     string Service;
  733.     string Control;
  734.     string Reason;
  735.     string ReasonText;
  736.     string Comment;
  737.     string sid;
  738. };
  739.  
  740. //
  741. // MessageId: EVENT_SERVICE_SHUTDOWN_FAILED
  742. //
  743. // MessageText:
  744. //
  745. // The %1 service did not shutdown properly on a preshutdown notification.
  746. //
  747. [
  748.     EventId(0xC0001B83) : ToInstance,
  749.     EventType(1) : ToInstance,
  750.     InsertionStringTemplates {"%Service%"} : ToInstance
  751. ]
  752. class MSFT_NetServiceShutdownFailed : MSFT_SCMEventLogEvent
  753. {
  754.     string Service;
  755. };
  756.  
  757. //
  758. // MessageId: EVENT_SERVICE_SLOW_STARTUP
  759. //
  760. // MessageText:
  761. //
  762. //  The following service is taking more than %2 minutes to start and may be hung: %1%n%n 
  763. //  Contact your system administrator or service vendor for approximate startup times for this service.%n%n
  764. //  If you think this service might be slowing system response or logon time, talk to your system administrator 
  765. //  about whether the service should be disabled until the problem is identified.%n%nYou may have to restart the
  766. //  computer in safe mode before you can disable the service.
  767. //
  768. [
  769.     EventId(0x80001B84) : ToInstance,
  770.     EventType(2) : ToInstance,
  771.     InsertionStringTemplates {"%Service%", "%StartupTime%"} : ToInstance
  772. ]
  773. class MSFT_NetServiceSlowStartup : MSFT_SCMEventLogEvent
  774. {
  775.     string Service;
  776.     uint32 StartupTime;
  777. };
  778.  
  779. /////////////////////////////////////////////////////////////////////////////
  780. // SCM Event Provider registration.
  781.  
  782. #pragma DeleteInstance("MSFT_WMI_NonCOMEventProvider.Name=\"SCM Event Provider\"", NOFAIL)
  783.  
  784. instance of __Win32Provider as $P1
  785. {
  786.     Name = "SCM Event Provider";
  787.     HostingModel = "Decoupled:NonCOM";
  788. };
  789.  
  790. instance of __EventProviderRegistration
  791. {
  792.     Provider = $P1;
  793.  
  794.     EventQueryList = 
  795.     {
  796.         "select * from MSFT_SCMEvent"
  797.     };
  798. };
  799.  
  800. /////////////////////////////////////////////////////////////////////////////
  801. // SCM Event Log consumer registration
  802.  
  803. //
  804. // clean up any old subscriptions in root\cimv2 ( left by whistler beta1 )
  805. //
  806.  
  807. #pragma deleteinstance("__FilterToConsumerBinding.Consumer=\"NTEventLogEventConsumer.Name=\\\"SCM Event Log Consumer\\\"\",Filter=\"__EventFilter.Name=\\\"SCM Event Log Filter\\\"\"", NOFAIL )
  808. #pragma deleteinstance("__EventFilter.Name=\"SCM Event Log Filter\"", NOFAIL )
  809.  
  810. #pragma namespace ("\\\\.\\root\\subscription")
  811.  
  812. instance of NTEventLogEventConsumer
  813. {
  814.     Name = "SCM Event Log Consumer";
  815.     SourceName = "Service Control Manager";
  816.     EventType = 1;
  817.     Category = 0;
  818.     NameOfUserSIDProperty = "sid";
  819.     CreatorSid = {1,2,0,0,0,0,0,5,32,0,0,0,32,2,0,0};
  820. };
  821.  
  822. /////////////////////////////////////////////////////////////////////////////
  823. // SCM Event Log filter
  824.  
  825. instance of __EventFilter
  826. {
  827.     Name = "SCM Event Log Filter";
  828.     QueryLanguage = "WQL";
  829.     Query = "select * from MSFT_SCMEventLogEvent";
  830.     EventNamespace = "root\\cimv2";
  831.     CreatorSid = {1,2,0,0,0,0,0,5,32,0,0,0,32,2,0,0};
  832. };
  833.  
  834. /////////////////////////////////////////////////////////////////////////////
  835. // SCM Event Log filter-to-consumer binding
  836.  
  837. instance of __FilterToConsumerBinding
  838. {
  839.     Consumer = "NTEventLogEventConsumer.Name=\"SCM Event Log Consumer\"";
  840.     Filter = "__EventFilter.Name=\"SCM Event Log Filter\"";
  841.     CreatorSid = {1,2,0,0,0,0,0,5,32,0,0,0,32,2,0,0};
  842. };
  843.  
  844.