Source code of Windows XP (NT5)
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.

97 lines
2.4 KiB

  1. // Sample mof file. In this MOF file, teh name "OtherPc" is a logical name
  2. // for a remote node. The name "dbitb2" is the actual name of the machine
  3. // on the network.
  4. #pragma namespace("\\\\.\\root")
  5. instance of __Namespace
  6. {
  7. Name = "DmiNodes";
  8. };
  9. #pragma namespace("\\\\.\\root\\DmiNodes")
  10. instance of __NameSpace
  11. {
  12. Name = "OtherPc"; // a logical name given to a remote node
  13. };
  14. #pragma namespace("\\\\.\\root\\DmiNodes\\Otherpc")
  15. [singleton]
  16. class DmiNode
  17. {
  18. string NetworkAddress;
  19. };
  20. instance of DmiNode
  21. {
  22. NetworkAddress = "dbitb2"; // Actual network name of the above node logical node "OtherPc"
  23. };
  24. instance of __Win32Provider As $Provider
  25. {
  26. Name = "WbemDmip" ;
  27. ClsId = "{DE065A70-19B5-11D1-B30C-00609778D668}" ;
  28. };
  29. instance of __InstanceProviderRegistration
  30. {
  31. Provider = $Provider;
  32. SupportsGet = TRUE;
  33. SupportsPut = TRUE;
  34. SupportsDelete = TRUE;
  35. SupportsEnumeration = TRUE;
  36. };
  37. instance of __MethodProviderRegistration
  38. {
  39. Provider = $Provider;
  40. };
  41. instance of __ClassProviderRegistration
  42. {
  43. Provider = $Provider;
  44. SupportsGet = TRUE;
  45. SupportsPut = FALSE;
  46. SupportsDelete = TRUE;
  47. SupportsEnumeration = TRUE;
  48. QuerySupportLevels = NULL ;
  49. ResultSetQueries = {
  50. "Select * From meta_class Where __this isa \"DmiComponent\"" ,
  51. "Select * From meta_class Where __this isa \"DmiGroupRoot\"" ,
  52. "Select * From meta_class Where __this isa \"DmiBindingRoot\"" ,
  53. "Select * From meta_class Where __this isa \"DmiNodeData\"" ,
  54. "Select * From meta_class Where __this isa \"DmiLanguage\"" ,
  55. "Select * From meta_class Where __this isa \"DmiEvent\"" ,
  56. "Select * From meta_class Where __this isa \"DmiAddMethodParams\"" ,
  57. "Select * From meta_class Where __this isa \"DmiGetEnumParams\"" ,
  58. "Select * From meta_class Where __this isa \"DmiLanguageMethodsParams\""
  59. } ;
  60. } ;
  61. instance of __Win32Provider as $EventProv
  62. {
  63. Name = "WbemDmiEventp" ;
  64. ClsId = "{B21FBFA0-1B39-11d1-B317-00609778D668}" ;
  65. };
  66. Instance of __EventProviderRegistration
  67. {
  68. Provider = $EventProv ;
  69. EventQueryList = {
  70. "select * from DmiEvent",
  71. "select * from __InstanceCreationEvent where TargetInstance isa \"DmiComponent\"",
  72. "select * from __InstanceDeletionEvent where TargetInstance isa \"DmiComponent\"",
  73. "select * from __InstanceCreationEvent where TargetInstance isa \"DmiLanguage\"",
  74. "select * from __InstanceDeletionEvent where TargetInstance isa \"DmiLanguage\""
  75. };
  76. };