P is for Practical | |
PerlMonks |
Win32 registry wierdnessby Necos (Friar) |
on Sep 19, 2005 at 20:50 UTC ( [id://493300]=perlquestion: print w/replies, xml ) | Need Help?? |
Necos has asked for the wisdom of the Perl Monks concerning the following question:
For starters, I've been using Win32::Registry for a long time. I know people use Win32::TieRegistry now, but I don't believe this to be the root of my problem. I have some code that fails with "Access is denied" printed in the portions when I print out the Win32 error message. Here's the code I've tested (it works on NT4, so I think this problem is specific to 2000 and higher).
Basically, what this code does is disable some options in Internet Explorer. While I was writing this code, I noticed that the keys don't always exist by default, so they may need to be created. The Create method will do an Open if the key already exists, or create it and then open if it doesn't. I have some other code that modifies some values in the registry that works just fine (it's also in the same script), so there appears to be a problem with creating the key if it does not already exist. I've been searching google, as well as hitting IRC for days now trying to figure out why I'm getting these errors. Since they code is working on HKEY_CURRENT_USER, there should be no restriction on what keys I can create or modify (since I can modify with no problem). Any help would be appreciated. Edit: g0n - Added readmore tags
Theodore Charles III Network Administrator Los Angeles Senior High email->secon_kun@hotmail.com perl -e "map{print++$_}split//,Mdbnr;"
Back to
Seekers of Perl Wisdom
|
|