Sioln has asked for the wisdom of the Perl Monks concerning the following question:
use Win32API::Registry 0.21 qw( :ALL ); my $reg_api; RegConnectRegistry( '127.0.0.1', HKEY_LOCAL_MACHINE, $reg_api ) or die + $^E; RegOpenKeyEx( $reg_api, "SOFTWARE\\7-zip", 0, KEY_READ, $key )or die $ +^E; RegGetKeySecurity( $key, DACL_SECURITY_INFORMATION, $pSecDesc, [] )or +die $^E;
what the next step to identify the KeySecurity?
I tried
or
unpack "P",$pSecDesc;But in both cases there was the same OS error "App. Perl - Memory Cannot be Read" or like it.
OS Win2kSp4 Perl 5.8.7
20060113 Janitored by Corion: Exchanged [code] tags (which don't exist) for <code> tags (which do exist and work)
OK :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32API::Registry::RegGetKeySecurity how to unpack the structure of $pSecDesc?
by Util (Priest) on Jan 13, 2006 at 14:42 UTC | |
by tye (Sage) on Jan 13, 2006 at 17:31 UTC | |
by Sioln (Sexton) on Jan 16, 2006 at 07:11 UTC | |
by tye (Sage) on Jan 16, 2006 at 07:16 UTC | |
by Sioln (Sexton) on Jan 13, 2006 at 15:01 UTC |