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.

52 lines
1.2 KiB

  1. // **************************************************************************
  2. // Copyright (c) 1997-1999 Microsoft Corporation.
  3. //
  4. // File: SampleViewer.mof
  5. //
  6. // Description:
  7. // mof file defines event consumer provider registration and class
  8. //
  9. // History:
  10. //
  11. // **************************************************************************
  12. #pragma namespace ("\\\\.\\Root\\cimv2")
  13. class Microsoft_SA_AlertEmailConsumer : __EventConsumer
  14. {
  15. [key] string Name;
  16. };
  17. instance of Microsoft_SA_AlertEmailConsumer as $CONSUMER
  18. {
  19. Name = "AlertEmailConsumer1";
  20. };
  21. instance of __EventFilter as $FILTER
  22. {
  23. Name = "{100E4E32-303A-41d6-BFD0-0BBD86EA7229}";
  24. Query = "select * from Microsoft_SA_AlertEvent";
  25. QueryLanguage = "WQL";
  26. };
  27. instance of __FilterToConsumerBinding
  28. {
  29. Consumer = $CONSUMER;
  30. Filter = $FILTER;
  31. DeliverSynchronously = FALSE;
  32. };
  33. // register me as a Physical Event Consumer Provider.
  34. instance of __Win32Provider as $PROVIDER
  35. {
  36. Name = "Microsoft_SA_AlertEmailConsumerProvider";
  37. Clsid = "{8B95D170-3890-4dc4-8796-1CE073CD1C58}";
  38. };
  39. instance of __EventConsumerProviderRegistration
  40. {
  41. Provider = $PROVIDER;
  42. ConsumerClassNames = {"Microsoft_SA_AlertEmailConsumer"};
  43. };