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.

103 lines
2.0 KiB

  1. // **************************************************************************
  2. // Copyright (c) 1999 Microsoft Corporation.
  3. //
  4. // File: vehicle.mof
  5. //
  6. // Description:
  7. // Defines the classes and instances needed to demonstrate wmi access
  8. // from a snap-in.
  9. // History:
  10. //
  11. // **************************************************************************
  12. // start in the root namespace...
  13. #pragma namespace ("\\\\.\\Root")
  14. // create a separate sub-namespace for us to use.
  15. instance of __Namespace
  16. {
  17. Name = "Vehicles";
  18. };
  19. // switch to the new namespace.
  20. #pragma namespace("\\root\\Vehicles")
  21. // define a class with properties.
  22. class Bicycle
  23. {
  24. [key, read, write] string Name;
  25. [read, write] string Color;
  26. [read, write] string Material;
  27. [read, write, Values{"Road", "Dirt", "Water", "Ice", "Snow", "Sky"}]
  28. uint8 Surface;
  29. [read, write] string Owner;
  30. [read, write] boolean Girls = false;
  31. };
  32. // Make some instances to start with.
  33. instance of Bicycle
  34. {
  35. Name = "Girl's Unlimited";
  36. Color = "Pink";
  37. Material = "Steel";
  38. Surface = 0; // road
  39. Owner = "Carol";
  40. Girls = true;
  41. };
  42. instance of Bicycle
  43. {
  44. Name = "Classic Flyer";
  45. Color = "Red";
  46. Material = "Steel";
  47. Surface = 0; // road
  48. Owner = "Bobby";
  49. };
  50. instance of Bicycle
  51. {
  52. Name = "French Meteor";
  53. Color = "Yellow";
  54. Material = "Titanium";
  55. Surface = 0; // road
  56. Owner = "Microsoft Racing Team";
  57. Girls = false;
  58. };
  59. instance of Bicycle
  60. {
  61. Name = "Mountain Man Special";
  62. Color = "Green";
  63. Material = "Titanium Alloy";
  64. Surface = 1; // dirt
  65. Owner = "Idaho Ziggy";
  66. };
  67. instance of Bicycle
  68. {
  69. Name = "Buck Rogers Attack Cycle";
  70. Color = "Golden";
  71. Material = "Aluminum";
  72. Surface = 5; // sky
  73. Owner = "Buck R.";
  74. Girls = false;
  75. };
  76. instance of Bicycle
  77. {
  78. Name = "Bahama Bike";
  79. Color = "Orange";
  80. Material = "Fiberglass";
  81. Surface = 2; // water
  82. Owner = "Big Resort";
  83. };
  84. instance of Bicycle
  85. {
  86. Name = "Ol' Nailer";
  87. Color = "Black";
  88. Material = "Steel";
  89. Surface = 3; // ice
  90. Owner = "Dudley";
  91. };