Skip to content

XInput - missing constant? ERROR_SUCCESS #618

Answered by AArnott
Gavin-Williams asked this question in Q&A
Discussion options

You must be logged in to vote

With ERROR_SUCCESS a warning is produced by the build:

1>C:\Users\andarno\source\repos\CsWin32Sandbox\CsWin32Sandbox\NativeMethods.txt(1,1,1,14): warning PInvoke004: Use the name of the enum that declares this constant: WIN32_ERROR

The constant is still emitted, but it's as an enum value within the WIN32_ERROR enum. That's where you'll find it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Gavin-Williams
Comment options

Answer selected by AArnott
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants