not working with mmc
when running mmc _OpenNcThemeData &&_RefreshImmersiveColorPolicyState && _ShouldAppsUseDarkMode && _AllowDarkModeForWindow && _SetPreferredAppMode && _IsDarkModeAllowedForWindow all return null. Is this an issue with it using a different ui framework than cleanmgr.exe or is it reated to the fact that I need to run the program with admin for it to be able to see mmc?
Ah, yes, mmc.exe probably runs as admin by default, so you should run DarkEnforcer or DarkTitle instance as Administrator to have access.
even with running it as admin I they are still returning null
I think mmc.exe, its UI also could be protected with extra measures as important system app. Simplest test could be to make a copy of mmc.exe under another name and/or location and run again. It would work if mmc protected by external manifest file or by some special system list by path.