Hi,
I encountered a strange problem to read some keys from registry.
My program should be run on Win7 32|64 bit and XP 32|64 bit (All options).
I successfully run the following simple code on Win7 64bit:
use Win32::Registry; my $Register = "Software"; my ($hkey, @key_list, $key); $HKEY_LOCAL_MACHINE->Open($Register,$hkey)|| die $!; $hkey->GetKeys(\@key_list); print "$Register keys\n"; foreach $key (@key_list) { print "$key\n"; } $hkey->Close();
But if I create registry key "Software\\Test" NOT UNDER "SOFTWARE\Wow6432Node" the program failed – can read the key
my $Register = "Software\\Test";How can I control the reading from registry for 32 and 64
How can I control to read this key:
Software\\TestAnd How can I control to read this key:
SOFTWARE\Wow6432Node\\TestPlease advice
In reply to Reading key from registry (32 and 64 Bit) by roteme
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |