A big "thanks" out to the open-source and open-forum
communities again. You guys make it possible to
survive outside of the Evil Empire (Microsoft). :)

Quick question -- I'm trying to write to the registry,
and I've gotten it to work using both Win32::Registry
and Win32::TieRegistry. The problem is, some of the
keys I need to edit are only accessible from the
system level... I've tried using Win32API::Registry,
but to no avail. Any tips? If it's possible to do this
sort of thing using the previous two packages, that'd
be GREAT!

(demo script: Even with full user write permissions,
this one doesn't work. Can someone see why??)

#!/usr/bin/perl
use Win32API::Registry 0.21 qw( :ALL );
RegOpenKeyEx( HKEY_LOCAL_MACHINE, "SYSTEM", 0,
KEY_ALL_ACCESS, $systemhandle );
RegCreateKeyEx( HKEY_LOCAL_MACHINE, "SYSTEM\\Junk", 0,
"", REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, [],
$junkhandle, [] );

Thanks again!

AdTech

__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to