79191074

Date: 2024-11-15 04:17:41
Score: 3
Natty:
Report link

Thanks @IInspectable!
This comment solved what I wanted to know.

This Microsoft implementation of how to receive strings allocated by the OS is the answer I am looking for.

In addition, the knowledge that I don't have to call FormatMessageW myself to display error messages was a big bonus.
(I probably should have noticed that the stderror was displayed in double place at the eprintln!("{:?}", err_msg); location and the Err(er) location in the main function.)

screen shot

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (2): I am looking for
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: longer