ActivePerl Documentation
|
NAMEWin32::Registry - accessing the Windows registry [obsolete, use Win32::TieRegistry]
SUPPORTED PLATFORMS
SYNOPSIS
use Win32::Registry;
my $tips;
$::HKEY_LOCAL_MACHINE->Open("SOFTWARE\\Microsoft\\Windows"
."\\CurrentVersion\\Explorer\\Tips", $tips)
or die "Can't open tips: $^E";
my ($type, $value);
$tips->QueryValueEx("18", $type, $value) or die "No tip #18: $^E";
print "Here's a tip: $value\n";
DESCRIPTION
NOTE: This module provides a very klunky interface to access the
Windows registry, and is not currently being developed actively. It
only exists for backward compatibility with old code that uses it.
For more powerful and flexible ways to access the registry, use
Win32::TieRegistry.
Win32::Registry provides an object oriented interface to the Windows Registry. The following ``root'' registry objects are exported to the main:: name space. Additional keys must be opened by calling the provided methods on one of these.
$HKEY_CLASSES_ROOT
$HKEY_CURRENT_USER
$HKEY_LOCAL_MACHINE
$HKEY_USERS
$HKEY_PERFORMANCE_DATA
$HKEY_CURRENT_CONFIG
$HKEY_DYN_DATA
MethodsThe following methods are supported. Note that subkeys can be specified as a path name, separated by backslashes (which may need to be doubled if you put them in double quotes).
|