Bug report
Bug description:
The error reporting for invalid memory access (HANDLE_INVALID_MEM and HANDLE_INVALID_MEM_METHOD) is using NTSTATUS and LsaNtStatusToWinError which aren't available in all WinAPI partitions. This leads to a compilation failure.
CPython versions tested on:
3.13
Operating systems tested on:
Windows
Linked PRs