Skip to content

Incorrect return type of RtlNtStatusToDosError #1642

@MichaelGrafnetter

Description

@MichaelGrafnetter

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions