mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2025-01-24 15:22:22 +01:00
Ability to set Control Center as network icon action (merged #492)
This commit is contained in:
parent
af204332d6
commit
aafd184962
@ -577,6 +577,18 @@ void LaunchNetworkTargets(DWORD dwTarget)
|
||||
SW_SHOWNORMAL
|
||||
);
|
||||
}
|
||||
else if (dwTarget == 6)
|
||||
{
|
||||
InvokeActionCenter();
|
||||
// ShellExecuteW(
|
||||
// NULL,
|
||||
// L"open",
|
||||
// L"ms-actioncenter:controlcenter/&showFooter=true",
|
||||
// NULL,
|
||||
// NULL,
|
||||
// SW_SHOWNORMAL
|
||||
// );
|
||||
}
|
||||
else if (dwTarget == 1)
|
||||
{
|
||||
ShellExecuteW(
|
||||
@ -2667,7 +2679,7 @@ HRESULT pnidui_CoCreateInstanceHook(
|
||||
{
|
||||
if (dwVal)
|
||||
{
|
||||
if (dwVal == 5)
|
||||
if (dwVal == 5 || dwVal == 6)
|
||||
{
|
||||
if (hCheckForegroundThread)
|
||||
{
|
||||
|
@ -87,7 +87,8 @@
|
||||
"ReplaceNetwork"=dword:00000000
|
||||
;t When clicking a system icon in the tray, open:
|
||||
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Control Panel\Settings\Network]
|
||||
;c 6 Network
|
||||
;c 7 Network
|
||||
;x 6 Control Center
|
||||
;x 5 Windows 11 WiFi flyout
|
||||
;x 0 Windows 10 flyout (default)
|
||||
;x 2 Windows 8 flyout
|
||||
|
Loading…
x
Reference in New Issue
Block a user