Changing the primary display on Windows by code is easy… Right?

I have this issue where Windows is sometimes randomly changing my primary display after a system restart. So I wanted to create a simple command-line application that would allow me to change the display settings on system startup – should be easy, right?

Narrator: it wasn’t easy.

3 Comments

  1. 2022-06-13 10:43 pm
    • 2022-06-13 11:31 pm
      • 2022-06-13 11:51 pm