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

Re: Pass Hexadecimal through OLE method?

by zakb (Pilgrim)
on Mar 26, 2003 at 16:07 UTC ( #245972=note: print w/replies, xml ) Need Help??


in reply to Pass Hexadecimal through OLE method?

Bit of a shot in the dark, but if I'm not mistaken, the Const HKEY_LOCAL_MACHINE = &H80000002 will simply convert the hex value to a decimal one, storing it most likely in a long int.

Have you tried:

$registry->EnumKey(hex('80000002'), $base, @result);

Replies are listed 'Best First'.
Re: Re: Pass Hexadecimal through OLE method?
by jpavel (Sexton) on Mar 26, 2003 at 16:20 UTC
    Works like a charm. And boy, do I feel like an idiot now. Of course it changes it to an int! And I'm sure passing 2147483650 would have the same result. Thanks!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2020-11-27 11:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?