Shouldn't this be just a u32 instead of an enum, since when calling EnumDisplaySettings() to enumerate all possible display settings you will need to keep incrementing the index until the function returns 0, and as far as i know @intToEnum() causes undefined behaviour when passed an out of range int.
https://github.com/marlersoft/zigwin32/blob/b70e7f818d77a0c0f39b0bd9c549e16439ff5780/win32/graphics/gdi.zig#LL1756C1-L1756C1
Shouldn't this be just a u32 instead of an enum, since when calling EnumDisplaySettings() to enumerate all possible display settings you will need to keep incrementing the index until the function returns 0, and as far as i know
@intToEnum()
causes undefined behaviour when passed an out of range int.