marlersoft / zigwin32

Zig bindings for Win32 generated by https://github.com/marlersoft/zigwin32gen
MIT License
234 stars 30 forks source link

SetConsoleMode flags #4

Open marler8997 opened 2 years ago

marler8997 commented 2 years ago

SetConsoleMode has an enum parameter. This enum has multiple names for the same values in some cases because it changes behavior depending on the presence of other flags. This means in some cases you can't use the correct name when using initFlags because it only has 1 name for each unique value.

If this situation is common enough, it might make sense to come up with a general solution for this. For now it might be good enough to create a manually generated wrapper for this that uses a union to change between enum types.