(v4.0 H1) Restoring Control Panel Pages/Links(1507-10 22H2)
Aug 3, 2023 22:30:56 GMT -8
Post by Brawllux on Aug 3, 2023 22:30:56 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.
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).
VERSION 4.0 Hotfix 1 19/09/2024
Download Here
Changelog:
-Fixed the bug that caused Network Map CPL to not load.
-Updated the readme for Windows Cardspace CPL.
VERSION 4.0 18/09/2024
Download Here
Changelog:
-New method for restoring CPL links is added,CPL links are now compatible with every Windows 10 version!(special thanks to m417z)
-Added 7 Style Backup and Restore CPL
-Added 7 Style Recovery CPL
-Added 7 Style Network and Sharing Center
-Added 7 Style Network Dialogs(Network name[Functional] and Network type[Not Functional])
-Added 7 Style Network Map CPL(functional)
-Added 7 Style Mobility Center
-7 Style CardSpace CPL is now functional(special thanks to urbanender )
-Updated 7 Style Performance Information and Tools
-PerfCenterCPL no longer requires regsvr32 command,import the included regkey as TI instead.
-Updated the included WH mod(special thanks to aubymori )
-Added a New URI redirector based off VBS.( It might not redirect everything well since its not that completed compared to the AHK based one. It is a lot faster compared to the AHK based one)
-Added an improved regkey for stopping Desktop context menu redirection,now its behavior is 1:1 with Windows 7-8.1.
-Improved clarity in some readme files.
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.
VERSION 3.5 15/05/2024
Download Here
Changelog:-Updated every readme file to avoid confusion
-Updated the included Windhawk mod-Added back 10(1507) Style links
-Added Vista Style Links
-Added Game Controllers CPL
-Added Firewall CPL(special thanks to Jevil7452 and R41NB0W_D4SH )-Added Security Center CPL(special thanks to Jevil7452 and R41NB0W_D4SH )
-Added Printers CPL-Added a special registry tweak for fixing desktop context menu redirection-Updated the included URI Redirector
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 !
VERSION 3.2 25/12/2023
Download 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/2023
Updated the title to avoid confusion.
VERSION 1.0 22/8/2023
Here 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
--------CREDITS--------
Required/Used Programs:
WinTBConf by torto (edited version already included in the pack)
Windhawk by Ramen Software
Winaero Tweaker by Sergey Tkachenko
Resource Hacker by angusj
URI Redirector by IHateMetro (edited version already included in the pack)
Used Info/Files/Knowledge:
Display CPL
WEI CPL
Windows Update CPL
Unhiding CPL Applets
Security Center and Firewall CPL
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).
VERSION 4.0 Hotfix 1 19/09/2024
Download Here
Changelog:
-Fixed the bug that caused Network Map CPL to not load.
-Updated the readme for Windows Cardspace CPL.
VERSION 4.0 18/09/2024
Changelog:
-New method for restoring CPL links is added,CPL links are now compatible with every Windows 10 version!(special thanks to m417z)
-Added 7 Style Backup and Restore CPL
-Added 7 Style Recovery CPL
-Added 7 Style Network and Sharing Center
-Added 7 Style Network Dialogs(Network name[Functional] and Network type[Not Functional])
-Added 7 Style Network Map CPL(functional)
-Added 7 Style Mobility Center
-7 Style CardSpace CPL is now functional(special thanks to urbanender )
-Updated 7 Style Performance Information and Tools
-PerfCenterCPL no longer requires regsvr32 command,import the included regkey as TI instead.
-Updated the included WH mod(special thanks to aubymori )
-Added a New URI redirector based off VBS.( It might not redirect everything well since its not that completed compared to the AHK based one. It is a lot faster compared to the AHK based one)
-Added an improved regkey for stopping Desktop context menu redirection,now its behavior is 1:1 with Windows 7-8.1.
-Improved clarity in some readme files.
Download Here
Changelog:
-Added Vista Style Links
-Added Game Controllers CPL
-Added Firewall CPL(special thanks to Jevil7452 and R41NB0W_D4SH )
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/2023
Download 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/2023
Updated the title to avoid confusion.
VERSION 1.0 22/8/2023
Here 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.
--------CREDITS--------
Required/Used Programs:
WinTBConf by torto (edited version already included in the pack)
Windhawk by Ramen Software
Winaero Tweaker by Sergey Tkachenko
Resource Hacker by angusj
URI Redirector by IHateMetro (edited version already included in the pack)
Used Info/Files/Knowledge:
Display CPL
WEI CPL
Windows Update CPL
Unhiding CPL Applets
Security Center and Firewall CPL