in reply to Re: Win32::API::Struct: Pointers of Pointers
in thread Win32::API::Struct: Pointers of Pointers
well,
it is not working. here is would i did.
it is not working. here is would i did.
i tried both variants without the make_unicode call <- made no differences!my $func = import_api_ex( 'advapi32', 'DWORD QueryUsersOnEncryptedFile(LPCWSTR lpFileName, LPVOID pUsers +)' ) ; # LPVOID* is not known die "Could not import API QueryUsersOnEncryptedFile: $!" unless define +d $func; my $encCertHashList = Win32::API::Struct->new('ENCRYPTION_CERTIFICATE_HASH_LIST'); $func->Call( make_unicode( File::Spec->canonpath($filename) ), $encCertHashList ); print $encCertHashList-> {nCert_Hash}; # i get: Can't use string ("ÈÖƒ?") as a HASH ref while + "strict refs" in use $encCertHashList = Win32::API::Struct->new('ENCRYPTION_CERTIFICATE_HAS +H_LIST'); $func->Call( make_unicode( File::Spec->canonpath($filename) ), \$encCertHashList ); print $encCertHashList-> {nCert_Hash}; # i get: Use of uninitialized value in print
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Win32::API::Struct: Pointers of Pointers
by BrowserUk (Patriarch) on Jun 29, 2006 at 12:18 UTC | |
by esskar (Deacon) on Jun 29, 2006 at 13:36 UTC | |
by BrowserUk (Patriarch) on Jun 29, 2006 at 13:59 UTC | |
by esskar (Deacon) on Jun 29, 2006 at 15:26 UTC | |
by BrowserUk (Patriarch) on Jun 29, 2006 at 18:44 UTC |
In Section
Seekers of Perl Wisdom