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.
 
 
 
 
 
 

24 lines
459 B

#Test for passing of null values. Note that
# currently it is not possible to pass a null into
# COM, but one can get a null out of COM.
use OLE;
use Win32;
# Get a favorite class from CIMOM
$locator = CreateObject OLE 'WbemScripting.SWbemLocator';
$service = $locator->ConnectServer (".", "root/default");
$class = $service->Get("a");
if (!defined($class->{pnull})) {
print "not defined\n";
}
else {
print "defined\n";
}