Re: Request for Enhancement: Native Call error

2020-01-07 Thread ToddAndMargo via perl6-users
On 2020-01-07 00:11, WFB wrote: Hi Todd, I think RegQueryValueExW is not the best choice for this to get the job done. Back in the $work with a Windows box, I looked around and found the RegGetValueW method: https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-reggetvaluew Th

Re: Request for Enhancement: Native Call error

2020-01-07 Thread WFB
Hi Todd, I think RegQueryValueExW is not the best choice for this to get the job done. Back in the $work with a Windows box, I looked around and found the RegGetValueW method: https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-reggetvaluew This method accept a type. No need to us

Re: Request for Enhancement: Native Call error

2020-01-03 Thread ToddAndMargo via perl6-users
On Wed, 1 Jan 2020 at 03:48, ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Hi All, Request for Enhancement: Native Call error perl6 -I. -e "use WinReg :WinReadRegKey; say WinReadRegKey( HKEY_LOCAL_MACHINE, Q[SOFTWARE\Microsoft\Windows\CurrentVersion\Poli

Re: Request for Enhancement: Native Call error

2020-01-01 Thread WFB
Hi Todd, Sounds like in WinReg.pm6 line 177 is a definition like : sub RegOpenKeyExW( DWORD, WCHARS, DWORD, DWORD, DWORD is rw) is native("Kernel32.dll") returns DWORD { * }; and you put a "my $i = 0" variable instead of "my int32 $i = 0" in it somewhere. Greetings, Wolf On Wed, 1 Jan 2020 at 03