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.

20 lines
494 B

  1. use OLE;
  2. use Win32;
  3. $locator = CreateObject OLE 'WbemScripting.SWbemLocator';
  4. $service = $locator->ConnectServer (".", "root/default");
  5. $class = $service->Get ("__cimomidentification");
  6. $subclass = $class->SpawnDerivedClass_ () || die;
  7. print "$class->{Path_}->{class}\n";
  8. $subclass->{Path_}->{Class} = "wibble";
  9. print "$subclass->{Path_}->{Class}\n";
  10. $subclass->Put_ ();
  11. # $class->{Path_}->{Class} = "wibble";
  12. # print "$class->{Path_}->{Class}\n";
  13. # $class->Put_ ();