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.

17 lines
417 B

  1. var t_Service = GetObject("winmgmts://./root/default");
  2. var t_Class = t_Service.Get();
  3. t_Class.Path_.Class = "SPAWNTEST00"
  4. t_Class.Put_();
  5. var t_Class = t_Service.get("SPAWNTEST00")
  6. t_Subclass = t_Class.SpawnDerivedClass_ ();
  7. t_Subclass.Path_.Class = "SPAWNTEST00_SUBCLASS";
  8. t_Subclass.Properties_.Add ("p", 13);
  9. t_Subclass.Qualifiers_.Add ("q", 1.23, true, false, false);
  10. t_Subclass.Put_ ();