Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

How to create new DWORD value in Windows Registry?

by vios (Novice)
on Sep 07, 2005 at 08:59 UTC ( #489803=perlquestion: print w/replies, xml ) Need Help??
vios has asked for the wisdom of the Perl Monks concerning the following question:

How to create a new DWORD value into Windows Registry?
  • Comment on How to create new DWORD value in Windows Registry?

Replies are listed 'Best First'.
Re: How to create new DWORD value in Windows Registry?
by gellyfish (Monsignor) on Sep 07, 2005 at 09:09 UTC
      The following code snippett should give you the right idea:
      use strict; use warnings; use use Win32::TieRegistry ( Delimiter => "/", ArrayValues => 1 ); my $rootkey = "LMachine/Software/Microsoft/Windows NT/CurrentVersion/W +inlogon"; $Registry->{"$rootkey//testkey"} = "foobar";
        Yes, got your idea. thank you.
        my $rootkey = "LMachine/Software/Microsoft/Windows NT/CurrentVersion/W +inlogon"; $Registry->{"$rootkey//testkey2"} = [pack("L",0), "REG_DWORD"];
      You would have thought that they would have a section on Adding Keys? Especially with a code examples that shows adding keys in all of the registry data types.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://489803]
Approved by Corion
[erix]: we frown :)
[marto]: Does the command line arg --product-version@ help?
[LanX]: xD
[erix]: 'systematic' is going to be hard to define I think
[marto]: Err no @
LanX Much enemy much ore
[Corion]: marto: Naah, my module doesn't care, but the users of my module might expect some things to work in Chrome that only work in later builds (or, as seems to be the case, don't work there either ;) )
[Corion]: But I really wonder - I can tell Chrome to go offline, but requesting pages over the network still succeeds. But if I manually click the "offline" checkbox, that's different :-/

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2017-12-12 20:23 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (335 votes). Check out past polls.