Skip to content

Can't generate some Setup API functions for AnyCPU #592

Answered by AArnott
Slion asked this question in Q&A
Discussion options

You must be logged in to vote

The C# representation for such APIs actually varies across architectures. Win32 took opportunity to change some structs and even some functions when switching to 64-bit in a way that C# cannot represent both versions with the same syntax. That's why CsWin32 cannot generate them unless you commit your compilation to one or more architecture-specific platforms. You can target x86, x64, and arm64 (compiling 3x with one project) and CsWin32 will generate the appropriate APIs during each compilation.

#409 and #366 describe possible ways to make this a bit better.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Slion
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