microsoft / CsWin32

A source generator to add a user-defined set of Win32 P/Invoke methods and supporting types to a C# project.
MIT License
2.05k stars 85 forks source link

PInvoke007 - The API "IOCTL_*" is ambiguous. Please specify one of: "IOCTL_*" or "IOCTL_*". #988

Closed Nuklon closed 1 year ago

Nuklon commented 1 year ago

Actual behavior

Doesn't build with the error. The "one of" are both identical. Weirdly it does generate the data.

Expected behavior

Should work OK.

Repro steps

  1. NativeMethods.txt content:
    IOCTL_*

    Context

AArnott commented 1 year ago

Thanks for the bug report. I can repro it.