Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Scanning of 64 Bit registry

by Anonymous Monk
on Jan 10, 2011 at 13:31 UTC ( [id://881452]=note: print w/replies, xml ) Need Help??


in reply to Scanning of 64 Bit registry

but returning undef when running on 64 bit system.

And the error message said?

Replies are listed 'Best First'.
Re^2: Scanning of 64 Bit registry
by cdarke (Prior) on Jan 10, 2011 at 13:52 UTC
    The handle is invalid

    I get the same problem when trying similar examples to the POD. That is:
    use Win32::TieRegistry( Delimiter=>"#", ArrayValues=>0 ); $pound= $Registry->Delimiter("/"); $diskKey= $Registry->{"LMachine/System"} or die "Can't read LMachine/System key: $^E\n";
    and
    use Win32::TieRegistry; my $tip18= $Registry->{"HKEY_LOCAL_MACHINE\\Software\\Microsoft\\" . 'Windows\\CurrentVersion\\Explorer\\Tips\\\\18'} or d +ie "$^E\n";
      Try require Win32::TieRegistry; warn $^E;
      Or better yet add
      BEGIN { $ENV{DEBUG_TIE_REGISTRY}=99; } ...
      I had this error and for me it was because of permissions. When I run command prompt as administrator, it works fine.
Re^2: Scanning of 64 Bit registry
by Anonymous Monk on Jan 11, 2011 at 12:08 UTC

    Hi,

    my $reg = $Win32::TieRegistry::Registry->{"HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services" };

    i am using above code and instead of returning List of keys it is returning undef

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://881452]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-16 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found