Actual behavior
The signature of RtlNtStatusToDosError is generated as follows:
internal static extern uint RtlNtStatusToDosError(winmdroot.Foundation.NTSTATUS Status);
Expected behavior
The function should return WIN32_ERROR instead of uint:
internal static extern WIN32_ERROR RtlNtStatusToDosError(winmdroot.Foundation.NTSTATUS Status);
Repro steps
NativeMethods.txt content:
RtlNtStatusToDosError
WIN32_ERROR
NTSTATUS
Context
- CsWin32 version: 0.3.269
- Target Framework: net10.0-windows;net48
LangVersion: 14
Actual behavior
The signature of RtlNtStatusToDosError is generated as follows:
Expected behavior
The function should return
WIN32_ERRORinstead ofuint:Repro steps
NativeMethods.txtcontent:Context
LangVersion: 14