Browse Source

Also hide the control center as it doesnt work either

pull/4478/head
Matthew Wigley 4 months ago
parent
commit
7ce7d97095
  1. 11
      ep_gui/GUI.c

11
ep_gui/GUI.c

@ -2575,17 +2575,26 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) @@ -2575,17 +2575,26 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
{
if (IsWindows11Build25346OrHigher())
{
// Hide the win8 network flyout as an option on Win 11 after 25346 as van.dll was removed
MENUITEMINFOA menuInfo;
ZeroMemory(&menuInfo, sizeof(MENUITEMINFOA));
menuInfo.cbSize = sizeof(MENUITEMINFOA);
menuInfo.fMask = MIIM_DATA;
// Hide the win8 network flyout as an option on Win 11 after 25346 as van.dll was removed
GetMenuItemInfoA(hMenu, 3, FALSE, &menuInfo);
if (menuInfo.dwItemData)
{
free(menuInfo.dwItemData);
}
RemoveMenu(hMenu, 3, MF_BYCOMMAND);
// Hide the control center option as this doesn't work either
GetMenuItemInfoA(hMenu, 7, FALSE, &menuInfo);
if (menuInfo.dwItemData)
{
free(menuInfo.dwItemData);
}
RemoveMenu(hMenu, 7, MF_BYCOMMAND);
}
}
HKEY hKey = NULL;

Loading…
Cancel
Save