This patch implements and improves error handling in Windows, by adding functions to get the last Windows API error, and by printing Windows API error messages when appropriate (instead of potentially-empty POSIX errors).
This is mostly scaffolding for later PRs, but it should be generally useful for any future work involving the Windows API.
This patch implements and improves error handling in Windows, by adding functions to get the last Windows API error, and by printing Windows API error messages when appropriate (instead of potentially-empty POSIX errors).
This is mostly scaffolding for later PRs, but it should be generally useful for any future work involving the Windows API.