On 2020-01-18 21:42, Paul Procacci wrote:
Sorry.  Not a WINAPI expert, nor do I want to be.  ;)

No Welcome to the Dar Side for you!!!

:-)


The $nSize variable looks fishy.  Can it ever contain a value that's <= 2?

The buffer always has some size to it.  Maybe not.

This is is what it looks like when yuo send it a
bogus error to decode

Oh poop, now I have to troubleshoot this:

K:\Windows\NtUtil>perl6 -I. -e "use lib '.'; use WinErr :WinFormatMessage; say WinFormatMessage( 0xF789, True );"

chr codepoint cannot be negative
  in sub WinFormatMessage at K:\Windows\NtUtil\WinErr.pm6 (WinErr) line 118
  in block <unit> at -e line 1

I does not like 0xFFFF as the first word.

Life in the fast lane.

:-)

Reply via email to