ChGen / DarkEnforcer

Win32 Dark Mode enforcer
MIT License
20 stars 3 forks source link

not working with mmc #3

Open meyyh opened 3 months ago

meyyh commented 3 months ago

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?

ChGen commented 3 months ago

Ah, yes, mmc.exe probably runs as admin by default, so you should run DarkEnforcer or DarkTitle instance as Administrator to have access.

meyyh commented 3 months ago

even with running it as admin I they are still returning null

ChGen commented 3 months ago

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.