Re: null and native call question

2019-12-27 Thread Brad Gilbert
A Null pointer is just a pointer that points to the address 0. So if you are dealing with it as an integer it will be 0. On Fri, Dec 27, 2019 at 6:06 AM ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > Hi All, > > https://docs.perl6.org/language/nativecall > > "As you may

Re: My pop ups for windows module

2019-12-27 Thread ToddAndMargo via perl6-users
On 2019-12-26 23:15, WFB wrote: Hi Todd, I refactored your code a bit to make it a bit more readable IMHO. Thinking on publish it on modules.raku.org if you are not interested to do so. Hi Tom, I am interested, but not quite yet. There are three dependent modules

null and native call question

2019-12-27 Thread ToddAndMargo via perl6-users
Hi All, https://docs.perl6.org/language/nativecall "As you may have predicted by now, a NULL pointer is represented by the type object of the struct type." https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regqueryvalueexw C++ LSTATUS RegQueryValueExW(

Re: how do I read registry key?

2019-12-27 Thread ToddAndMargo via perl6-users
My Latest with Wolf's recommendations. Now I can open and close the key, but still am getting an invalid parameter trying to read the key K:\Windows\NtUtil>perl6 -I. -e "use WinMount :GetLUA; say GetLUA();" RegOpenKeyExW RegOpenKeyExW RtnCode 0 RegQueryValueExW 1 2

Re: how do I read registry key?

2019-12-27 Thread ToddAndMargo via perl6-users
On 2019-12-27 00:45, WFB wrote: Hi Todd, According to this: https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499- Return code 161 means: ERROR_BAD_PATHNAME. Changing your code fixed that:  my Str   $SubKey =

Re: how do I read registry key?

2019-12-27 Thread WFB
Hi Todd, According to this: https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499- Return code 161 means: ERROR_BAD_PATHNAME. Changing your code fixed that: my Str $SubKey = 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System'; my $lpValueName =