bedoke
New Member
Posts: 3
OS: Windows 10 LTSC 2021
Theme: Aero10 by vaporvance
CPU: Ryzen 7 5800x
RAM: 32GB DDR4 3600mhz
GPU: RTX 3090
|
Post by bedoke on Feb 8, 2024 9:54:08 GMT -8
Small flaw. When right clicking at the Desktop and going to "Personalize", it redirects straight to "Desktop Backgrounds" instead. Otherwise it is cool and works well so far
|
|
Zul
New Member
Posts: 7
OS: Windows 10 IoT Enterprise LTSC 2021
Theme: Windows 7
CPU: Intel Celeron N2807
RAM: 4 GB
|
Post by Zul on Feb 8, 2024 15:21:35 GMT -8
Small flaw. When right clicking at the Desktop and going to "Personalize", it redirects straight to "Desktop Backgrounds" instead. Otherwise it is cool and works well so far Open regedit as TrustedInstaller and head to " HKEY_CLASSES_ROOT\DesktopBackground\Shell\Personalize" and edit " SettingsURI", delete the " -background" text in " ms-settings:personalization-background" value data.
|
|
bedoke
New Member
Posts: 3
OS: Windows 10 LTSC 2021
Theme: Aero10 by vaporvance
CPU: Ryzen 7 5800x
RAM: 32GB DDR4 3600mhz
GPU: RTX 3090
|
Post by bedoke on Feb 10, 2024 4:36:19 GMT -8
Small flaw. When right clicking at the Desktop and going to "Personalize", it redirects straight to "Desktop Backgrounds" instead. Otherwise it is cool and works well so far Open regedit as TrustedInstaller and head to " HKEY_CLASSES_ROOT\DesktopBackground\Shell\Personalize" and edit " SettingsURI", delete the " -background" text in " ms-settings:personalization-background" value data. View AttachmentThanks, that did the trick!
|
|
|
Post by Brawllux on Feb 10, 2024 7:46:16 GMT -8
Small flaw. When right clicking at the Desktop and going to "Personalize", it redirects straight to "Desktop Backgrounds" instead. Otherwise it is cool and works well so far Open regedit as TrustedInstaller and head to " HKEY_CLASSES_ROOT\DesktopBackground\Shell\Personalize" and edit " SettingsURI", delete the " -background" text in " ms-settings:personalization-background" value data. View AttachmentThanks for telling people the workaround. I forgot to include the regkeys that restores 7 behavior. Will include the proper fix in the next update. Thanks again!
|
|
Zul
New Member
Posts: 7
OS: Windows 10 IoT Enterprise LTSC 2021
Theme: Windows 7
CPU: Intel Celeron N2807
RAM: 4 GB
|
Post by Zul on Feb 10, 2024 8:18:29 GMT -8
Open regedit as TrustedInstaller and head to " HKEY_CLASSES_ROOT\DesktopBackground\Shell\Personalize" and edit " SettingsURI", delete the " -background" text in " ms-settings:personalization-background" value data. View AttachmentThanks for telling people the workaround. I forgot to include the regkeys that restores 7 behavior. Will include the proper fix in the next update. Thanks again! Yeah you're welcome 👍
|
|
yellow64
New Member
I work on things and that stuff, lol.
Posts: 5
OS: Windows 10 Pro 22H2
CPU: AMD Ryzen 5 1400
RAM: 8 GB
GPU: Nvidia GeForce GTX 1050 Ti
|
Post by yellow64 on Mar 9, 2024 11:25:19 GMT -8
Hello, I tried this and followed everything very carefully. Since then, entering the "Turn system icons on and off" menu and clicking "Cancel" in Notification Area Icons just force closes the control panel and all file explorer tabs. Trying to access System Icons with cmd also says "ERROR: Access is denied." and doesn't let me through. Other than that, this is absolutely amazing! Thank you sincerely for creating this.
|
|
|
Post by Brawllux on Mar 9, 2024 13:58:53 GMT -8
Hello, I tried this and followed everything very carefully. Since then, entering the "Turn system icons on and off" menu and clicking "Cancel" in Notification Area Icons just force closes the control panel and all file explorer tabs. Trying to access System Icons with cmd also says "ERROR: Access is denied." and doesn't let me through. Other than that, this is absolutely amazing! Thank you sincerely for creating this. This pack is optimized for Windows 10,things may or may not work in W11 but nothing is guaranteed(Assuming that you are using 11 since u said explorer tabs).
|
|
yellow64
New Member
I work on things and that stuff, lol.
Posts: 5
OS: Windows 10 Pro 22H2
CPU: AMD Ryzen 5 1400
RAM: 8 GB
GPU: Nvidia GeForce GTX 1050 Ti
|
Post by yellow64 on Mar 9, 2024 14:12:49 GMT -8
Hello, I tried this and followed everything very carefully. Since then, entering the "Turn system icons on and off" menu and clicking "Cancel" in Notification Area Icons just force closes the control panel and all file explorer tabs. Trying to access System Icons with cmd also says "ERROR: Access is denied." and doesn't let me through. Other than that, this is absolutely amazing! Thank you sincerely for creating this. This pack is optimized for Windows 10,things may or may not work in W11 but nothing is guaranteed(Assuming that you are using 11 since u said explorer tabs). I am using Windows 10 (Version 22H2), I'm really sorry that I wasn't clear earlier. What I meant is that trying to go to "System Icons" and cancelling out of Notification Area Icons closes not only the Control Panel, but my file explorer windows as well. If this problem isn't a part of this pack, I'll try looking into it myself. Then again, you did an amazing job!
|
|
|
Post by Sennanon on Mar 9, 2024 14:36:46 GMT -8
I think I know what you mean about the system icons, but are the file explorer tabs from qttabbar?
|
|
yellow64
New Member
I work on things and that stuff, lol.
Posts: 5
OS: Windows 10 Pro 22H2
CPU: AMD Ryzen 5 1400
RAM: 8 GB
GPU: Nvidia GeForce GTX 1050 Ti
|
Post by yellow64 on Mar 9, 2024 15:04:30 GMT -8
I think I know what you mean about the system icons, but are the file explorer tabs from qttabbar? These options cause my file explorer (including control panel) to close out. I really don't know what's causing it.
And no, sorry, I'm dumb and I meant "windows", not "tabs". I was off with my wording once again, it's a bad habit.
Attachments:
|
|
|
Post by anixx on Mar 9, 2024 20:42:29 GMT -8
|
|
|
Post by OrthodoxWin32 on Mar 10, 2024 5:03:49 GMT -8
Brawllux On your guide, you indicate to modify the Windhawk settings to inject critical processes even if this is not explicitly requested by the mods. This seems unnecessary to me, because if a mod requests access to a critical process, access is given by default. And this is especially dangerous, because most mods do not aim to inject certain critical processes, which can lead to unwanted behavior, sometimes serious (including a system freeze, a BSOD, a boot loop...).
|
|
yellow64
New Member
I work on things and that stuff, lol.
Posts: 5
OS: Windows 10 Pro 22H2
CPU: AMD Ryzen 5 1400
RAM: 8 GB
GPU: Nvidia GeForce GTX 1050 Ti
|
Post by yellow64 on Mar 10, 2024 10:46:14 GMT -8
I think I know what you mean about the system icons, but are the file explorer tabs from qttabbar? These options cause my file explorer (including control panel) to close out. I really don't know what's causing it.
And no, sorry, I'm dumb and I meant "windows", not "tabs". I was off with my wording once again, it's a bad habit.
Update:
This is the crash log And sometimes Problem Event APPCRASH happens with exception code c0000005. SndVolSSO.dll faults during APPCRASH when I click "Turn system icons on or off" and RPCRT4.dll always faults with the APPCRASH event and code when I click "Cancel". I'm really not sure why.
Sorry if the problem is not related to this pack at all. Since it began happening after I restored Notification Tray Icons, I thought it's related. Thanks in advance!
|
|
⠀
Freshman Member
Posts: 79
OS: Windows 10 Enterprise LTSC 2019
|
Post by ⠀ on Mar 11, 2024 3:38:08 GMT -8
These options cause my file explorer (including control panel) to close out. I really don't know what's causing it.
And no, sorry, I'm dumb and I meant "windows", not "tabs". I was off with my wording once again, it's a bad habit.
Update:
This is the crash log And sometimes Problem Event APPCRASH happens with exception code c0000005. SndVolSSO.dll faults during APPCRASH when I click "Turn system icons on or off" and RPCRT4.dll always faults with the APPCRASH event and code when I click "Cancel". I'm really not sure why.
Sorry if the problem is not related to this pack at all. Since it began happening after I restored Notification Tray Icons, I thought it's related. Thanks in advance!
I have the same question here and idk why it keeps crashing..
|
|
|
Post by Brawllux on Mar 11, 2024 4:33:00 GMT -8
These options cause my file explorer (including control panel) to close out. I really don't know what's causing it.
And no, sorry, I'm dumb and I meant "windows", not "tabs". I was off with my wording once again, it's a bad habit.
Update:
This is the crash log And sometimes Problem Event APPCRASH happens with exception code c0000005. SndVolSSO.dll faults during APPCRASH when I click "Turn system icons on or off" and RPCRT4.dll always faults with the APPCRASH event and code when I click "Cancel". I'm really not sure why.
Sorry if the problem is not related to this pack at all. Since it began happening after I restored Notification Tray Icons, I thought it's related. Thanks in advance!
If you replaced taskbarcpl.dll with the one included in the pack please revert back to the original files. If you didn't the crash isn't by Notification tray cpl because with stock 10 dll it's just one key added to the registry.
|
|
yellow64
New Member
I work on things and that stuff, lol.
Posts: 5
OS: Windows 10 Pro 22H2
CPU: AMD Ryzen 5 1400
RAM: 8 GB
GPU: Nvidia GeForce GTX 1050 Ti
|
Post by yellow64 on Mar 11, 2024 10:27:58 GMT -8
Update:
This is the crash log And sometimes Problem Event APPCRASH happens with exception code c0000005. SndVolSSO.dll faults during APPCRASH when I click "Turn system icons on or off" and RPCRT4.dll always faults with the APPCRASH event and code when I click "Cancel". I'm really not sure why.
Sorry if the problem is not related to this pack at all. Since it began happening after I restored Notification Tray Icons, I thought it's related. Thanks in advance!
If you replaced taskbarcpl.dll with the one included in the pack please revert back to the original files. If you didn't the crash isn't by Notification tray cpl because with stock 10 dll it's just one key added to the registry. Yes, I had replaced taskbarcpl.dll with the one in the pack. That did the trick, honestly feel kinda dumb that it flew over me, lol.
Still, thank you very much!
|
|
creepahjacket
New Member
Posts: 15
OS: Windows 10 22H2
Theme: Aero10
CPU: Intel Celeron N4120
RAM: 8 GB
GPU: Intel UHD Graphics
|
Post by creepahjacket on Mar 20, 2024 23:24:40 GMT -8
IF YOUR PROBLEM OR QUESTION IS ALREADY EXPLAINED IN THE README FILES I AM NOT GOING GO ANSWER YOU. READ THE TEXT I PUT THERE BEFORE ASKING QUESTIONS.I started this project like a month ago, seeing Microsoft ruining the good old control panel more and more with every update was what started it. Currently i managed to restore Personalization,Windows Update,Display, Notification Tray icons,Default Apps(only visual,half of the page is broken still),Performance Info and tools and its score that can also redirect you to that page in system CPL. The pages open inside CPL without needing to open in an external window(some applet settings still do that unfortunately).Tested in Every major Windows 10 release(not tested for 11).Some legacy applets may not work depending on the version of Windows 10 you are using(eg 7 intl.cpl works up to 1909,8.X themecpl.dll works up to 1607). Some applets functionalities can't be restored unfortunately but you can still view their pages(eg 7 style usercpl.dll). There is a way to restore links on versions 1507-1809 instead of importing files to shell32.dll.mun you directly import them to shell32.dll but it will require you to break shell32.dll's signature and will force you to disable secure boot and choose "disable driver signature enforcement" every time you boot. It's not very secure so thats why i wouldn't recommend attempting to get links on Windows 10 versions 1507-1809. UPDATED WINDHAWK MOD FOR VERSION 3.2 02/02/2024 This updated mod includes correct Applet Sorting for 7/8.X Restorations. Use this mod instead of the one included in the pack. Thanks again aubymori !
// ==WindhawkMod== // @id cpl-reborn // @name Control Panel Reborn // @description Finally. // @version 1.1.1 // @author aubymori // @github https://github.com/aubymori // @include explorer.exe // @include control.exe // @include mblctr.exe // @include rundll32.exe // @include DpiScaling.exe // @compilerOptions -lpsapi -lcomctl32 // ==/WindhawkMod==
// ==WindhawkModReadme== /* # Control Panel Reborn Finally. */ // ==/WindhawkModReadme==
#include <psapi.h> #include <windhawk_utils.h>
/** * Custom applet order. * Arrays with less than 14 items need to be filled with NULLs * or else the mod will crash. */ LPCWSTR g_szAppletOrder[][20] = { /* System and Security */ { L"::{BB64F8A7-BEE7-4E1A-AB8D-7D8273F7FDB6}", // Action Center L"::{4026492F-2F69-46B8-B9BF-5654FC07E423}", // Windows Firewall L"::{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}", // System L"::{36eef7db-88ad-4e81-ad49-0e313f0c35f8}", // Windows Update L"::{025A5937-A6BE-4686-A844-36FE4BEC8B6D}", // Power Options L"::{87D66A43-7B11-4A28-9811-C86EE395ACF7}", // Indexing Options L"::{F6B6E965-E9B2-444B-9286-10C9152EDBC5}", // File History L"::{B98A2BEA-7D42-4558-8BD1-832F41BAC6FD}", // Backup and Restore L"::{D9EF8727-CAC2-4e60-809E-86F80A666C91}", // BitLocker Drive Encryption L"::{F942C606-0914-47AB-BE56-1321B8035096}", // Storage Senses L"::{ECDB0924-4208-451E-8EE0-373C0956DE16}", // Work Folders L"::{BE122A0E-4503-11DA-8BDE-F66BAD1E3F3A}", // Windows Anytime Upgrade / Add features to Windows 8.1 L"::{78F3955E-3B90-4184-BD14-5397C15F1EFC}", // WEI L"::{74246bfc-4c96-11d0-abef-0020af6b0b7a}", // Device Manager L"::{D20EA4E1-3957-11d2-A40B-0C5020524153}", // Administrative Tools NULL, NULL, NULL, NULL, NULL, }, /* Network and Internet */ { L"::{8E908FC9-BECC-40f6-915B-F4CA0E70D03D}", // Network and Sharing Center L"::{67CA7650-96E6-4FDD-BB43-A8E774F73A57}", // HomeGroup L"::{A3DD4F92-658A-410F-84FD-6FBBBEF2FFFE}", // Internet Options L"::{4026492F-2F69-46B8-B9BF-5654FC07E423}", // Windows Firewall L"::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}", // SYNC Center NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, }, /* Hardware and Sound */ { L"::{2227A280-3AEA-1069-A2DE-08002B30309D}", // Printers L"::{A8A91A66-3A7D-4424-8D24-04E180695C7A}", // Devices and Printers L"::{9C60DE1E-E5FC-40f4-A487-460851A8D915}", // AutoPlay L"::{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}", // Sound L"::{6C8EEC18-8D75-41B2-A177-8831D59D2D50}", // Mouse L"::{025A5937-A6BE-4686-A844-36FE4BEC8B6D}", // Power Options L"::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921}", // Personalization L"::{725BE8F7-668E-4C7B-8F90-46BDB0936430}", // Keyboard L"::{74246bfc-4c96-11d0-abef-0020af6b0b7a}", // Device Manager L"::{40419485-C444-4567-851A-2DD7BFA1684D}", // Phone and Modem L"::{259EF4B1-E6C9-4176-B574-481532C9BCE8}", // Game Controllers L"::{C555438B-3C23-4769-A71F-B6D3D9B6053A}", // Display L"::{5ea4f148-308c-46d7-98a9-49041b1dd468}", // Windows Mobility Center L"::{F82DF8F7-8B9F-442E-A48C-818EA735FF9B}", // Pen and Touch L"::{E9950154-C418-419e-A90A-20C5287AE24B}", // Location Settings L"::{0142e4d0-fb7a-11dc-ba4a-000ffe7ab428}", // Biometric Devices NULL, NULL, NULL, NULL, }, /* Programs */ { L"::{7B81BE6A-CE2B-4676-A29E-EB907A5126C5}", // Programs and Features L"::{17cd9488-1228-4b2f-88ce-4298e93e0966}", // Default Programs L"::{37efd44d-ef8d-41b1-940d-96973a50e9e0}", // Desktop Gadgets L"::{ED7BA470-8E54-465E-825C-99712043E01C}", // GODMODE NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, }, /* User Accounts and Family Safety */ { L"::{60632754-c523-4b62-b45c-4172da012619}", // User Accounts L"::{96AE8D84-A250-4520-95A5-A47A7E3C548B}", // Parental Controls / Family Safety L"::{78CB147A-98EA-4AA6-B0DF-C8681F69341C}", // Windows CardSpace L"::{1206F5F1-0569-412C-8FEC-3204630DFB70}", // Credential Manager NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, }, /* Appearance and Personalization */ { L"::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921}", // Personalization L"::{C555438B-3C23-4769-A71F-B6D3D9B6053A}", // Display L"::{37efd44d-ef8d-41b1-940d-96973a50e9e0}", // Desktop Gadgets L"::{0DF44EAA-FF21-4412-828E-260A8728E7F1}", // Taskbar and Start Menu / Taskbar and Navigation L"::{D555645E-D4F8-4c29-A827-D93C859C4F2A}", // Ease of Access Center L"::{6DFD7C5C-2451-11d3-A299-00C04F8EF6AF}", // Folder Options L"::{BD84B380-8CA2-1069-AB1D-08000948F534}", // Fonts NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, }, /* Clock, Language, and Region */ { L"::{E2E7934B-DCE5-43C4-9576-7FE4F75E7480}", // Date and Time L"::{BF782CC9-5A52-4A17-806C-2A894FFEEAC5}", // Language L"::{62d8ed13-c9d0-4ce8-a914-47dd628fb1b0}", // Region and Langauge / Region NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, }, /* Ease of Access */ { L"::{D555645E-D4F8-4c29-A827-D93C859C4F2A}", // Ease of Access Center L"::{58E3C745-D971-4081-9034-86E34B30836A}", // Speech Recognition NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, }, };
#define CControlPanelAppletList_HDPA(pThis) *((HDPA *)pThis + 2) #define CControlPanelAppletList_Category(pThis) *((DWORD *)pThis + 32)
/* Map CPL category ID to array index */ int MapCategory(int category) { switch (category) { /* System and Security */ case 5: return 0; /* Network and Internet */ case 3: return 1; /* Hardware and Sound */ case 2: return 2; /* Programs */ case 8: return 3; /* User Accounts and Family Safety */ case 9: return 4; /* Appearance and Personalization */ case 1: return 5; /* Clock, Language, and Region */ case 6: return 6; /* Ease of Access */ case 7: return 7; default: return -1; } }
int FindApplet(LPCWSTR lpszApplet, int category) { for (UINT i = 0; i < ARRAYSIZE(g_szAppletOrder[category]); i++) { if (NULL == g_szAppletOrder[category][i]) { break; }
if (0 == wcsicmp(g_szAppletOrder[category][i], lpszApplet)) { return i; } } return -1; }
int (*CControlPanelAppletList_s_SortAppletsInCategory_orig)(void *, void *, LPARAM); int CControlPanelAppletList_s_SortAppletsInCategory_hook( void *p1, void *p2, LPARAM lParam ) { HDPA hDpa = CControlPanelAppletList_HDPA(lParam); LPVOID pThing1 = DPA_GetPtr(hDpa, *(int *)p1); LPVOID pThing2 = DPA_GetPtr(hDpa, *(int *)p2); int category = MapCategory(CControlPanelAppletList_Category(lParam)); if (category >= 0 && hDpa && pThing1 && pThing2) { LPCWSTR pszApplet1 = (LPCWSTR)((char *)pThing1 + 520); LPCWSTR pszApplet2 = (LPCWSTR)((char *)pThing2 + 520); int iApplet1 = FindApplet(pszApplet1, category); if (iApplet1 < 0) { return 1; } else { int iApplet2 = FindApplet(pszApplet2, category); if (iApplet2 >= 0 && iApplet1 > iApplet2) { return 1; } else { return -1; } } } return 0; }
LPCWSTR g_szAppletsToUnhide[] = { L"::{BF782CC9-5A52-4A17-806C-2A894FFEEAC5}", // Language Settings L"::{ED834ED6-4B5A-4BFE-8F11-A626DCB6A921}", // Personalization L"::{D9EF8727-CAC2-4e60-809E-86F80A666C91}", // BitLocker Drive Encryption L"::{D17D1D6D-CC3F-4815-8FE3-607E7D5D10B3}", // Text to Speech L"::{E95A4861-D57A-4BE1-AD0F-35267E261739}", // Windows SlideShow (?) L"::{96AE8D84-A250-4520-95A5-A47A7E3C548B}", // Family Safety L"::{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}", // System };
LPCWSTR g_szCanonicalNames[] = { L"Microsoft.Display", L"Microsoft.Personalization", L"Microsoft.Language", L"Microsoft.LocationAndOtherSensors", L"Microsoft.LocationSettings", L"Microsoft.WindowsUpdate", L"Microsoft.Troubleshooting", L"Microsoft.DevicesAndPrinters", L"Microsoft.RegionalAndLanguageOptions", L"Microsoft.System", L"::{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}", L"bthprops.cpl" };
void ZeroStringInModule(HMODULE hModule, LPCWSTR lpSearch) { if (!lpSearch) { return; }
MODULEINFO info = { 0 }; GetModuleInformation( GetCurrentProcess(), hModule, &info, sizeof(MODULEINFO) );
DWORD_PTR base = (size_t)info.lpBaseOfDll; size_t size = (size_t)info.SizeOfImage; size_t patternLen = wcslen(lpSearch) * 2;
for (size_t i = 0; i < size - patternLen; i++) { bool found = true;
for (size_t j = 0; j < patternLen; j++) { found = *((char *)lpSearch + j) == *(char *)(base + i + j);
if (!found) { break; } }
if (found) { size_t ptr = base + i; Wh_Log(L"Found L\"%s\"!", lpSearch);
MEMORY_BASIC_INFORMATION mbi; VirtualQuery((wchar_t *)ptr, &mbi, sizeof(MEMORY_BASIC_INFORMATION));
if (!VirtualProtect(mbi.BaseAddress, mbi.RegionSize, PAGE_READWRITE, &mbi.Protect)) { return; }
ZeroMemory((void *)ptr, patternLen);
DWORD dwOldProtect; VirtualProtect(mbi.BaseAddress, mbi.RegionSize, mbi.Protect, &dwOldProtect);
return; } }
Wh_Log(L"Did find not L\"%s\". :(", lpSearch); }
const WindhawkUtils::SYMBOL_HOOK hooks[] = { { { L"private: static int __cdecl CControlPanelAppletList::s_SortAppletsInCategory(int const *,int const *,__int64)" }, &CControlPanelAppletList_s_SortAppletsInCategory_orig, CControlPanelAppletList_s_SortAppletsInCategory_hook, false } };
BOOL Wh_ModInit(void) { HMODULE hShell32 = LoadLibraryW(L"shell32.dll"); if (!hShell32) { Wh_Log(L"Failed to load shell32.dll"); return FALSE; }
for (size_t i = 0; i < ARRAYSIZE(g_szAppletsToUnhide); i++) { ZeroStringInModule( hShell32, g_szAppletsToUnhide[i] ); }
for (size_t i = 0; i < ARRAYSIZE(g_szCanonicalNames); i++) { ZeroStringInModule( hShell32, g_szCanonicalNames[i] ); }
if (!WindhawkUtils::HookSymbols( hShell32, hooks, ARRAYSIZE(hooks) )) { Wh_Log(L"Failed to hook one or more symbol functions"); return FALSE; }
return TRUE; }
VERSION 3.2 25/12/2023Download Here Changelog: -Added a Windhawk mod to stop redirection inside CPL more efficiently(thanks aubymori ) -Added 7 Style Display CPL -Added Biometric Devices CPL -Added Parental Controls(Family Safety) CPL[for decoration only) -Added Cardspace CPL[for decoration only) -Added Language CPL(functional on 10 1803,for decoration on 1809 and newer) -Added a semi accurate program to replicate old taskbar properties dialog,edited by me(original by torto ) -Added my edit of the URI Redirector to stop redirection outside CPL(original by ihatemetro )THREAD UPDATE 9/10/2023Updated the title to avoid confusion. VERSION 1.0 22/8/2023Here is the first version of this pack. If you find something that does not work and not included in any readme file please notify me. Download here i checked this out recently and it's so cool... but a really weird problem i'm having is that display options just does not want to exist at all.. like in appearance & personalization the option is not there, in addition when i right click the desktop the option is there but it just shows me an error which says that it can't find it, also in addition the display option in personalization is there but it does nothing.. i tried reinstalling control panel links and the display page multiple times but it still would not just show up
|
|
|
Post by enderboy on Mar 22, 2024 12:07:07 GMT -8
Can you add a default programs restoration link
|
|
|
Post by Brawllux on Mar 22, 2024 13:59:04 GMT -8
IF YOUR PROBLEM OR QUESTION IS ALREADY EXPLAINED IN THE README FILES I AM NOT GOING GO ANSWER YOU. READ THE TEXT I PUT THERE BEFORE ASKING QUESTIONS.I started this project like a month ago, seeing Microsoft ruining the good old control panel more and more with every update was what started it. Currently i managed to restore Personalization,Windows Update,Display, Notification Tray icons,Default Apps(only visual,half of the page is broken still),Performance Info and tools and its score that can also redirect you to that page in system CPL. The pages open inside CPL without needing to open in an external window(some applet settings still do that unfortunately).Tested in Every major Windows 10 release(not tested for 11).Some legacy applets may not work depending on the version of Windows 10 you are using(eg 7 intl.cpl works up to 1909,8.X themecpl.dll works up to 1607). Some applets functionalities can't be restored unfortunately but you can still view their pages(eg 7 style usercpl.dll). There is a way to restore links on versions 1507-1809 instead of importing files to shell32.dll.mun you directly import them to shell32.dll but it will require you to break shell32.dll's signature and will force you to disable secure boot and choose "disable driver signature enforcement" every time you boot. It's not very secure so thats why i wouldn't recommend attempting to get links on Windows 10 versions 1507-1809. UPDATED WINDHAWK MOD FOR VERSION 3.2 02/02/2024 This updated mod includes correct Applet Sorting for 7/8.X Restorations. Use this mod instead of the one included in the pack. Thanks again aubymori !
// ==WindhawkMod== // @id cpl-reborn // @name Control Panel Reborn // @description Finally. // @version 1.1.1 // @author aubymori // @github https://github.com/aubymori // @include explorer.exe // @include control.exe // @include mblctr.exe // @include rundll32.exe // @include DpiScaling.exe // @compilerOptions -lpsapi -lcomctl32 // ==/WindhawkMod==
// ==WindhawkModReadme== /* # Control Panel Reborn Finally. */ // ==/WindhawkModReadme==
#include <psapi.h> #include <windhawk_utils.h>
/** * Custom applet order. * Arrays with less than 14 items need to be filled with NULLs * or else the mod will crash. */ LPCWSTR g_szAppletOrder[][20] = { /* System and Security */ { L"::{BB64F8A7-BEE7-4E1A-AB8D-7D8273F7FDB6}", // Action Center L"::{4026492F-2F69-46B8-B9BF-5654FC07E423}", // Windows Firewall L"::{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}", // System L"::{36eef7db-88ad-4e81-ad49-0e313f0c35f8}", // Windows Update L"::{025A5937-A6BE-4686-A844-36FE4BEC8B6D}", // Power Options L"::{87D66A43-7B11-4A28-9811-C86EE395ACF7}", // Indexing Options L"::{F6B6E965-E9B2-444B-9286-10C9152EDBC5}", // File History L"::{B98A2BEA-7D42-4558-8BD1-832F41BAC6FD}", // Backup and Restore L"::{D9EF8727-CAC2-4e60-809E-86F80A666C91}", // BitLocker Drive Encryption L"::{F942C606-0914-47AB-BE56-1321B8035096}", // Storage Senses L"::{ECDB0924-4208-451E-8EE0-373C0956DE16}", // Work Folders L"::{BE122A0E-4503-11DA-8BDE-F66BAD1E3F3A}", // Windows Anytime Upgrade / Add features to Windows 8.1 L"::{78F3955E-3B90-4184-BD14-5397C15F1EFC}", // WEI L"::{74246bfc-4c96-11d0-abef-0020af6b0b7a}", // Device Manager L"::{D20EA4E1-3957-11d2-A40B-0C5020524153}", // Administrative Tools NULL, NULL, NULL, NULL, NULL, }, /* Network and Internet */ { L"::{8E908FC9-BECC-40f6-915B-F4CA0E70D03D}", // Network and Sharing Center L"::{67CA7650-96E6-4FDD-BB43-A8E774F73A57}", // HomeGroup L"::{A3DD4F92-658A-410F-84FD-6FBBBEF2FFFE}", // Internet Options L"::{4026492F-2F69-46B8-B9BF-5654FC07E423}", // Windows Firewall L"::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}", // SYNC Center NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, }, /* Hardware and Sound */ { L"::{2227A280-3AEA-1069-A2DE-08002B30309D}", // Printers L"::{A8A91A66-3A7D-4424-8D24-04E180695C7A}", // Devices and Printers L"::{9C60DE1E-E5FC-40f4-A487-460851A8D915}", // AutoPlay L"::{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}", // Sound L"::{6C8EEC18-8D75-41B2-A177-8831D59D2D50}", // Mouse L"::{025A5937-A6BE-4686-A844-36FE4BEC8B6D}", // Power Options L"::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921}", // Personalization L"::{725BE8F7-668E-4C7B-8F90-46BDB0936430}", // Keyboard L"::{74246bfc-4c96-11d0-abef-0020af6b0b7a}", // Device Manager L"::{40419485-C444-4567-851A-2DD7BFA1684D}", // Phone and Modem L"::{259EF4B1-E6C9-4176-B574-481532C9BCE8}", // Game Controllers L"::{C555438B-3C23-4769-A71F-B6D3D9B6053A}", // Display L"::{5ea4f148-308c-46d7-98a9-49041b1dd468}", // Windows Mobility Center L"::{F82DF8F7-8B9F-442E-A48C-818EA735FF9B}", // Pen and Touch L"::{E9950154-C418-419e-A90A-20C5287AE24B}", // Location Settings L"::{0142e4d0-fb7a-11dc-ba4a-000ffe7ab428}", // Biometric Devices NULL, NULL, NULL, NULL, }, /* Programs */ { L"::{7B81BE6A-CE2B-4676-A29E-EB907A5126C5}", // Programs and Features L"::{17cd9488-1228-4b2f-88ce-4298e93e0966}", // Default Programs L"::{37efd44d-ef8d-41b1-940d-96973a50e9e0}", // Desktop Gadgets L"::{ED7BA470-8E54-465E-825C-99712043E01C}", // GODMODE NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, }, /* User Accounts and Family Safety */ { L"::{60632754-c523-4b62-b45c-4172da012619}", // User Accounts L"::{96AE8D84-A250-4520-95A5-A47A7E3C548B}", // Parental Controls / Family Safety L"::{78CB147A-98EA-4AA6-B0DF-C8681F69341C}", // Windows CardSpace L"::{1206F5F1-0569-412C-8FEC-3204630DFB70}", // Credential Manager NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, }, /* Appearance and Personalization */ { L"::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921}", // Personalization L"::{C555438B-3C23-4769-A71F-B6D3D9B6053A}", // Display L"::{37efd44d-ef8d-41b1-940d-96973a50e9e0}", // Desktop Gadgets L"::{0DF44EAA-FF21-4412-828E-260A8728E7F1}", // Taskbar and Start Menu / Taskbar and Navigation L"::{D555645E-D4F8-4c29-A827-D93C859C4F2A}", // Ease of Access Center L"::{6DFD7C5C-2451-11d3-A299-00C04F8EF6AF}", // Folder Options L"::{BD84B380-8CA2-1069-AB1D-08000948F534}", // Fonts NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, }, /* Clock, Language, and Region */ { L"::{E2E7934B-DCE5-43C4-9576-7FE4F75E7480}", // Date and Time L"::{BF782CC9-5A52-4A17-806C-2A894FFEEAC5}", // Language L"::{62d8ed13-c9d0-4ce8-a914-47dd628fb1b0}", // Region and Langauge / Region NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, }, /* Ease of Access */ { L"::{D555645E-D4F8-4c29-A827-D93C859C4F2A}", // Ease of Access Center L"::{58E3C745-D971-4081-9034-86E34B30836A}", // Speech Recognition NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, }, };
#define CControlPanelAppletList_HDPA(pThis) *((HDPA *)pThis + 2) #define CControlPanelAppletList_Category(pThis) *((DWORD *)pThis + 32)
/* Map CPL category ID to array index */ int MapCategory(int category) { switch (category) { /* System and Security */ case 5: return 0; /* Network and Internet */ case 3: return 1; /* Hardware and Sound */ case 2: return 2; /* Programs */ case 8: return 3; /* User Accounts and Family Safety */ case 9: return 4; /* Appearance and Personalization */ case 1: return 5; /* Clock, Language, and Region */ case 6: return 6; /* Ease of Access */ case 7: return 7; default: return -1; } }
int FindApplet(LPCWSTR lpszApplet, int category) { for (UINT i = 0; i < ARRAYSIZE(g_szAppletOrder[category]); i++) { if (NULL == g_szAppletOrder[category][i]) { break; }
if (0 == wcsicmp(g_szAppletOrder[category][i], lpszApplet)) { return i; } } return -1; }
int (*CControlPanelAppletList_s_SortAppletsInCategory_orig)(void *, void *, LPARAM); int CControlPanelAppletList_s_SortAppletsInCategory_hook( void *p1, void *p2, LPARAM lParam ) { HDPA hDpa = CControlPanelAppletList_HDPA(lParam); LPVOID pThing1 = DPA_GetPtr(hDpa, *(int *)p1); LPVOID pThing2 = DPA_GetPtr(hDpa, *(int *)p2); int category = MapCategory(CControlPanelAppletList_Category(lParam)); if (category >= 0 && hDpa && pThing1 && pThing2) { LPCWSTR pszApplet1 = (LPCWSTR)((char *)pThing1 + 520); LPCWSTR pszApplet2 = (LPCWSTR)((char *)pThing2 + 520); int iApplet1 = FindApplet(pszApplet1, category); if (iApplet1 < 0) { return 1; } else { int iApplet2 = FindApplet(pszApplet2, category); if (iApplet2 >= 0 && iApplet1 > iApplet2) { return 1; } else { return -1; } } } return 0; }
LPCWSTR g_szAppletsToUnhide[] = { L"::{BF782CC9-5A52-4A17-806C-2A894FFEEAC5}", // Language Settings L"::{ED834ED6-4B5A-4BFE-8F11-A626DCB6A921}", // Personalization L"::{D9EF8727-CAC2-4e60-809E-86F80A666C91}", // BitLocker Drive Encryption L"::{D17D1D6D-CC3F-4815-8FE3-607E7D5D10B3}", // Text to Speech L"::{E95A4861-D57A-4BE1-AD0F-35267E261739}", // Windows SlideShow (?) L"::{96AE8D84-A250-4520-95A5-A47A7E3C548B}", // Family Safety L"::{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}", // System };
LPCWSTR g_szCanonicalNames[] = { L"Microsoft.Display", L"Microsoft.Personalization", L"Microsoft.Language", L"Microsoft.LocationAndOtherSensors", L"Microsoft.LocationSettings", L"Microsoft.WindowsUpdate", L"Microsoft.Troubleshooting", L"Microsoft.DevicesAndPrinters", L"Microsoft.RegionalAndLanguageOptions", L"Microsoft.System", L"::{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}", L"bthprops.cpl" };
void ZeroStringInModule(HMODULE hModule, LPCWSTR lpSearch) { if (!lpSearch) { return; }
MODULEINFO info = { 0 }; GetModuleInformation( GetCurrentProcess(), hModule, &info, sizeof(MODULEINFO) );
DWORD_PTR base = (size_t)info.lpBaseOfDll; size_t size = (size_t)info.SizeOfImage; size_t patternLen = wcslen(lpSearch) * 2;
for (size_t i = 0; i < size - patternLen; i++) { bool found = true;
for (size_t j = 0; j < patternLen; j++) { found = *((char *)lpSearch + j) == *(char *)(base + i + j);
if (!found) { break; } }
if (found) { size_t ptr = base + i; Wh_Log(L"Found L\"%s\"!", lpSearch);
MEMORY_BASIC_INFORMATION mbi; VirtualQuery((wchar_t *)ptr, &mbi, sizeof(MEMORY_BASIC_INFORMATION));
if (!VirtualProtect(mbi.BaseAddress, mbi.RegionSize, PAGE_READWRITE, &mbi.Protect)) { return; }
ZeroMemory((void *)ptr, patternLen);
DWORD dwOldProtect; VirtualProtect(mbi.BaseAddress, mbi.RegionSize, mbi.Protect, &dwOldProtect);
return; } }
Wh_Log(L"Did find not L\"%s\". :(", lpSearch); }
const WindhawkUtils::SYMBOL_HOOK hooks[] = { { { L"private: static int __cdecl CControlPanelAppletList::s_SortAppletsInCategory(int const *,int const *,__int64)" }, &CControlPanelAppletList_s_SortAppletsInCategory_orig, CControlPanelAppletList_s_SortAppletsInCategory_hook, false } };
BOOL Wh_ModInit(void) { HMODULE hShell32 = LoadLibraryW(L"shell32.dll"); if (!hShell32) { Wh_Log(L"Failed to load shell32.dll"); return FALSE; }
for (size_t i = 0; i < ARRAYSIZE(g_szAppletsToUnhide); i++) { ZeroStringInModule( hShell32, g_szAppletsToUnhide[i] ); }
for (size_t i = 0; i < ARRAYSIZE(g_szCanonicalNames); i++) { ZeroStringInModule( hShell32, g_szCanonicalNames[i] ); }
if (!WindhawkUtils::HookSymbols( hShell32, hooks, ARRAYSIZE(hooks) )) { Wh_Log(L"Failed to hook one or more symbol functions"); return FALSE; }
return TRUE; }
VERSION 3.2 25/12/2023Download Here Changelog: -Added a Windhawk mod to stop redirection inside CPL more efficiently(thanks aubymori ) -Added 7 Style Display CPL -Added Biometric Devices CPL -Added Parental Controls(Family Safety) CPL[for decoration only) -Added Cardspace CPL[for decoration only) -Added Language CPL(functional on 10 1803,for decoration on 1809 and newer) -Added a semi accurate program to replicate old taskbar properties dialog,edited by me(original by torto ) -Added my edit of the URI Redirector to stop redirection outside CPL(original by ihatemetro )THREAD UPDATE 9/10/2023Updated the title to avoid confusion. VERSION 1.0 22/8/2023Here is the first version of this pack. If you find something that does not work and not included in any readme file please notify me. Download here i checked this out recently and it's so cool... but a really weird problem i'm having is that display options just does not want to exist at all.. like in appearance & personalization the option is not there, in addition when i right click the desktop the option is there but it just shows me an error which says that it can't find it, also in addition the display option in personalization is there but it does nothing.. i tried reinstalling control panel links and the display page multiple times but it still would not just show up If you used a 7TSP icon pack please grab regedit.exe from a clean install. 7TSP icon packs break regedit making every modification to the registry useless.
|
|
|
Post by Brawllux on Mar 22, 2024 13:59:46 GMT -8
Can you add a default programs restoration link The code required for it was completely removed from shell32 in Windows 10 1803,impossible to restore.
|
|