|laziness, impatience, and hubris
Raku: How do I generate a handle for HKEY_LOCAL_MACHINE?by nysus (Parson)
|on Sep 03, 2022 at 15:49 UTC
nysus has asked for the wisdom of the Perl Monks concerning the following question:
I'm looking to improve the Find::Which module so that it can find executables in the registry in HKEY LOCAL MACHINE\SOFTWARE Microsoft) Windows\CurrentVersion\App Paths.
I'm using Raku's NativeCall feature to attempt this but I'm having trouble using the Windows API to make function calls that require an HKEY handle to make queries. My latest failed attempt which just attempts to pass in a string for HKEY and then tries to use cglobal to get a value for it:
I tried taking look at some other Perl modules like Win32API::Registery but did not get anywhere. Any general hints would be greatly appreciated. Thanks.
$PM = "Perl Monk's";