Leave it to Microsoft to require you to call undocumented functions from uxtheme...

@TheQuinbox@dragonscave.space

Leave it to Microsoft to require you to call undocumented functions from uxtheme.dll in order to make an app using raw Win32 respect dark mode on Windows 10/11.
*queue grumbling about making ten million UI frameworks that all get abandoned while neglecting the one that's actually core to everything and just works*