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.
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 usinginitFlags
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.