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 = 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System';
  my       $lpValueName = wstr('EnableLUA');

Then the return code of the RegQueryValueExW is 87. According to the page above, that means ERROR_INVALID_PARAMETER. Because of that I looked at the RegQueryValueExW help page you linked and noticed that it says:

|lpReserved|

This parameter is reserved and must be *NULL*.

In your code there is a 1 given. Unfortunately, just a 0 does not helped. Here, I have no idea how a NULL is given.


Regards,

Wolf

Hi Wolf,

The guys over on comp.lang.c++ gave me the same
link to the error codes.

I will try your fixes tomorrow when I get some free time.

Thank you!

-T

Reply via email to