Browse Source

Fixed Windows 11 taskbar not being able to start

pull/400/head 22000.318.37.2_8cba312
Valentin Radu 4 years ago
parent
commit
8cba312707
  1. 21
      ExplorerPatcher/dllmain.c

21
ExplorerPatcher/dllmain.c

@ -150,6 +150,23 @@ DWORD CheckForUpdatesThread(LPVOID unused)
__x_ABI_CWindows_CUI_CNotifications_CIToastNotificationFactory* notifFactory = NULL; __x_ABI_CWindows_CUI_CNotifications_CIToastNotificationFactory* notifFactory = NULL;
__x_ABI_CWindows_CUI_CNotifications_CIToastNotification* toast = NULL; __x_ABI_CWindows_CUI_CNotifications_CIToastNotification* toast = NULL;
while (TRUE)
{
HWND hShell_TrayWnd = FindWindowExW(
NULL,
NULL,
L"Shell_TrayWnd",
NULL
);
if (hShell_TrayWnd)
{
Sleep(5000);
break;
}
Sleep(100);
}
printf("[Updates] Starting daemon.\n");
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
{ {
hr = RoInitialize(RO_INIT_MULTITHREADED); hr = RoInitialize(RO_INIT_MULTITHREADED);
@ -1289,10 +1306,6 @@ INT64 Shell_TrayWndSubclassProc(
DWORD dwThreadId = GetCurrentThreadId(); DWORD dwThreadId = GetCurrentThreadId();
Shell_TrayWndMouseHook = SetWindowsHookExW(WH_MOUSE, Shell_TrayWndMouseProc, NULL, dwThreadId); Shell_TrayWndMouseHook = SetWindowsHookExW(WH_MOUSE, Shell_TrayWndMouseProc, NULL, dwThreadId);
} }
else if (uMsg == WM_COMMAND)
{
printf("DA\n");
}
else if (uMsg == RegisterWindowMessageW(L"Windows11ContextMenu_" _T(EP_CLSID))) else if (uMsg == RegisterWindowMessageW(L"Windows11ContextMenu_" _T(EP_CLSID)))
{ {
POINT pt; POINT pt;

Loading…
Cancel
Save