Can I turn on Hdr on Windows via Java? [closed]

I use HDR in games from time to time. I usually have Hdr disabled in Windows and there are only a few games that enable Hdr themselves as soon as you enable the option for it in the game. However, most games simply gray out this option. I would therefore like to develop a small program that allows me to switch on the HDR option in Windows using a hotkey. Since I’ve just started my studies and we’ve only done some Java so far, I don’t know if you can access these functions with Java. I found an article from Microsoft that describes access via C#. Unfortunately I don’t understand that yet, C# will only play a role later. Is there a way to access this feature via Java and enable and disable it? Thanks in advance.

I mainly tried to find information about it, but that didn’t work, except as I said with C#.

  • you would need to access the Windows native API in Java, which isn’t possible directly, as Java is supposed to run cross-plattform. However there are some libraries that support accessing native code, e.g. JNA or JNI.

    – 




Leave a Comment