Closed rickbrew closed 9 months ago
Also, since this is essentially an enum (albeit certainly not expressed as such), maybe they could just go inside of DPI_AWARENESS_CONTEXT
? 🤔
Also worth pointing out is that DPI_AWARENESS_CONTEXT.INVALID
, which is cast from -1
just like all the other wrapper structs, is not actually an invalid value -- it is equal to DPI_AWARENESS_CONTEXT_UNAWARE
.
There's a
DPI_AWARENESS_CONTEXT
wrapper struct, and the only values you ever want to use are predefined https://learn.microsoft.com/en-us/windows/win32/hidpi/dpi-awareness-contextThose predefined values are over in
TerraFX.Interop.Windows.Windows
, but they arenuint
s. This means I have to cast in order to call e.g.SetProcessDpiAwarenessContext
Looks like this needs a manual override