home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 November / PCpro_2005_11.ISO / files / plugins / plugins_windows / wmitools / WMITools.exe / WMITools.msi / WMITools.cab / EViewer.mof < prev    next >
Encoding:
Text File  |  2000-02-07  |  793 b   |  35 lines

  1. // Copyright (c) 1997-1999 Microsoft Corporation
  2. #pragma namespace("\\root\\cimv2")
  3. #pragma autorecover
  4.  
  5. // register me as a Physical Event Consumer Provider.
  6. instance of __Win32Provider as $P
  7. {
  8.     Name = "EventViewerConsumer";
  9.     Clsid = "{DD2DB150-8D3A-11d1-ADBF-00AA00B8E05A}";
  10. };
  11.  
  12. instance of __EventConsumerProviderRegistration
  13. {
  14.    Provider = $P;
  15.    ConsumerClassNames = {"EventViewerConsumer"};
  16. };
  17.  
  18. // this is my logical consumer class.
  19.     [Locale(0x049), UUID("{8502C596-5FBB-11D2-AAC1-006008C78BC7}")]
  20. class EventViewerConsumer : __EventConsumer
  21. {
  22.     [key] 
  23.     string Name = "";
  24.       
  25.     [read, 
  26.     ValueMap {"0", "1", "2"},
  27.       Values {"Error", "Warning", "Information"}]
  28.     uint8 Severity = 0;          // 0-based.
  29.     
  30.     [read] 
  31.     string Description = "";
  32. };
  33.     
  34.  
  35.