Skip to content

Instantly share code, notes, and snippets.

@0x79H
Last active October 10, 2022 01:56
Show Gist options
  • Save 0x79H/442c15f31f8257f68ae4d9271a637762 to your computer and use it in GitHub Desktop.
Save 0x79H/442c15f31f8257f68ae4d9271a637762 to your computer and use it in GitHub Desktop.
cpl info in user32.dll
//DATA XREF: CPL_LegacyMappingsMatch(CPLEXECINFO *,_MAPPEDCPLTYPE *)+5E↑o
CPL_ITEM cpl_table[42] =
{
{ L"MODEM.CPL", NULL, NULL, 1i64, L"Microsoft.PhoneAndModem", NULL, L"1" },
{ L"UPS.CPL", NULL, NULL, 1i64, L"Microsoft.PowerOptions", NULL, NULL },
{ L"POWERCFG.CPL", NULL, NULL, 1i64, L"Microsoft.PowerOptions", NULL, NULL },
{
L"STICPL.CPL",
NULL,
NULL,
2i64,
L"\"%ProgramFiles%\\Windows Photo Viewer\\ImagingDevices.exe\"",
NULL,
NULL
},
{
L"APPWIZ.CPL",
NULL,
NULL,
1i64,
L"Microsoft.ProgramsAndFeatures",
NULL,
NULL
},
{
L"APPWIZ.CPL",
NULL,
L"0",
1i64,
L"Microsoft.ProgramsAndFeatures",
NULL,
NULL
},
{
L"APPWIZ.CPL",
NULL,
L"install",
1i64,
L"Microsoft.ProgramsAndFeatures",
NULL,
NULL
},
{
L"APPWIZ.CPL",
NULL,
L"1",
2i64,
L"shell:::{26EE0668-A00A-44D7-9371-BEB064C98683}\\8\\::{15eae92e-f17a-4431-9f28-805e482dafd4}",
NULL,
NULL
},
{
L"APPWIZ.CPL",
NULL,
L"remove",
2i64,
L"shell:::{26EE0668-A00A-44D7-9371-BEB064C98683}\\8\\::{15eae92e-f17a-4431-9f28-805e482dafd4}",
NULL,
NULL
},
{
L"APPWIZ.CPL",
NULL,
L"configurewindows",
2i64,
L"OptionalFeatures.exe",
NULL,
NULL
},
{ L"APPWIZ.CPL", NULL, L"2", 2i64, L"OptionalFeatures.exe", NULL, NULL },
{ L"APPWIZ.CPL", NULL, L"3", 2i64, L"ComputerDefaults.exe", NULL, NULL },
{
L"APPWIZ.CPL",
NULL,
L"showupdates",
1i64,
L"Microsoft.ProgramsAndFeatures",
NULL,
L"::{D450A8A1-9568-45C7-9C0E-B4F9FB4537BD}"
},
{
L"DESK.CPL",
NULL,
L"@background",
1i64,
L"Microsoft.Personalization",
NULL,
L"pageWallpaper"
},
{
L"DESK.CPL",
NULL,
L"@desktop",
1i64,
L"Microsoft.Personalization",
NULL,
L"pageWallpaper"
},
{
L"DESK.CPL",
NULL,
L"@appearance",
1i64,
L"Microsoft.Personalization",
NULL,
NULL
},
{
L"DESK.CPL",
NULL,
L"@screensaver",
0i64,
L"DESK.CPL",
L"ScreenSaver",
L"@ScreenSaver"
},
{ L"DESK.CPL", NULL, NULL, 1i64, L"Microsoft.Display", NULL, L"Settings" },
{ L"DESK.CPL", NULL, L"2", 1i64, L"Microsoft.Personalization", NULL, NULL },
{ L"DESK.CPL", NULL, L"3", 1i64, L"Microsoft.Display", NULL, L"Settings" },
{ L"DESK.CPL", NULL, L"4", 1i64, L"Microsoft.Display", NULL, L"Settings" },
{
L"DESK.CPL",
NULL,
L"@settings",
1i64,
L"Microsoft.Display",
NULL,
L"Settings"
},
{
L"DESK.CPL",
NULL,
L"@monitor",
1i64,
L"Microsoft.Display",
NULL,
L"Settings"
},
{ L"DESK.CPL", NULL, L"@themes", 0i64, L"DESK.CPL", L"Themes", L"@Themes" },
{ L"DESK.CPL", NULL, L"@web", 0i64, L"DESK.CPL", L"Web", L"0" },
{
L"DESK.CPL",
L"Appearance",
L"@Appearance",
1i64,
L"Microsoft.Personalization",
NULL,
NULL
},
{
L"DESK.CPL",
L"Advanced",
L"@Advanced",
1i64,
L"Microsoft.Personalization",
NULL,
L"pageColorization"
},
{ L"NUSRMGR.CPL", NULL, NULL, 1i64, L"Microsoft.UserAccounts", NULL, NULL },
{ L"HDWWIZ.CPL", NULL, NULL, 1i64, L"Microsoft.DeviceManager", NULL, NULL },
{
L"SYSDM.CPL",
NULL,
L"1",
2i64,
L"SystemPropertiesComputerName.exe",
NULL,
NULL
},
{
L"SYSDM.CPL",
NULL,
L"2",
2i64,
L"SystemPropertiesHardware.exe",
NULL,
NULL
},
{
L"SYSDM.CPL",
NULL,
L"3",
2i64,
L"SystemPropertiesAdvanced.exe",
NULL,
NULL
},
{
L"SYSDM.CPL",
NULL,
L"4",
2i64,
L"SystemPropertiesProtection.exe",
NULL,
NULL
},
{ L"SYSDM.CPL", NULL, L"5", 2i64, L"SystemPropertiesRemote.exe", NULL, NULL },
{
L"SYSDM.CPL",
NULL,
L"-1",
2i64,
L"SystemPropertiesPerformance.exe",
NULL,
NULL
},
{
L"SYSDM.CPL",
NULL,
NULL,
2i64,
L"SystemPropertiesComputerName.exe",
NULL,
NULL
},
{
L"FIREWALL.CPL",
NULL,
NULL,
1i64,
L"Microsoft.WindowsFirewall",
NULL,
NULL
},
{
L"ACCESS.CPL",
NULL,
NULL,
1i64,
L"Microsoft.EaseOfAccessCenter",
NULL,
NULL
},
{ L"ODBCCP32.CPL", NULL, NULL, 2i64, L"odbcad32.exe", NULL, NULL },
{
L"NETSETUP.CPL",
NULL,
NULL,
2i64,
L"rundll32.exe",
NULL,
L"xwizards.dll,RunWizard {D1A42999-0ADF-11DA-B070-0011856571DE}"
},
{ L"WSCUI.CPL", NULL, NULL, 1i64, L"Microsoft.ActionCenter", NULL, NULL },
{
L"KEYMGR.DLL",
NULL,
NULL,
1i64,
L"Microsoft.CredentialManager",
NULL,
NULL
}
};
struct CPL_ITEM
{
LPCWCH cpl_filename;
LPCWCH cpl_applet;
LPCWCH cpl_params;
__int64 cpl_type;
LPCWCH cpl_command4type2;
LPCWCH cpl_applet4type2;
LPCWCH cpl_params4type2;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment