m1lhaus / windhawk-mods

The official collection of Windhawk mods
0 stars 0 forks source link

Can't Restart Explorer While this Mod is Enabled #12

Closed bbmaster123 closed 2 months ago

bbmaster123 commented 7 months ago

As the title says, I can't force restart explorer.exe while this mod is enabled, unless I:

  1. disable the mod, run explorer, enable the mod
  2. Manually run explorer as admin

Otherwise, I just have no shell :/ It does this with other mods disabled as well. Once explorer loads and the mod hooks, it functions perfectly fine.

Using Windhawk 1.4, Windows 11 22621.3374, taskbar-empty-space-clicks 1.3, win11 taskbar Happy to provide more info if needed

I'd also be okay with a user configurable hook delay in seconds or ms if the issue is too difficult to fix Here's the detailed log:

DebugViewConsole 1.8.0.102
Listening for OutputDebugString messages...
14:05:59.293 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::LoadedMod
14:05:59.293 9252 explorer.exe  [WH] [LoadedMod::LoadedMod]: Windows 10.0.22621
14:05:59.293 9252 explorer.exe  [WH] [LoadedMod::LoadedMod]: Windhawk v1.4.1
14:05:59.293 9252 explorer.exe  [WH] [LoadedMod::LoadedMod]: Mod id: taskbar-empty-space-clicks
14:05:59.293 9252 explorer.exe  [WH] [LoadedMod::LoadedMod]: Mod version: 1.3
14:05:59.293 9252 explorer.exe  [WH] [LoadedMod::LoadedMod]: Mod base address: 00007FFD5DAC0000
14:05:59.293 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::LoadedMod
14:05:59.294 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::Initialize
14:05:59.294 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::GetIntSetting
14:05:59.294 9252 explorer.exe  [WH] [LoadedMod::GetIntSetting]: valueName: oldTaskbarOnWin11
14:05:59.294 9252 explorer.exe  [WH] [LoadedMod::GetIntSetting]: valueNameFormatted: oldTaskbarOnWin11
14:05:59.294 9252 explorer.exe  [WH] [LoadedMod::GetIntSetting]: value: 0
14:05:59.295 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::GetIntSetting
14:05:59.295 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::GetStringSetting
14:05:59.295 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueName: doubleClickAction
14:05:59.295 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueNameFormatted: doubleClickAction
14:05:59.295 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: value: ACTION_SEND_KEYPRESS
14:05:59.295 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::GetStringSetting
14:05:59.295 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::FreeStringSetting
14:05:59.295 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::FreeStringSetting
14:05:59.295 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::GetStringSetting
14:05:59.295 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueName: middleClickAction
14:05:59.295 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueNameFormatted: middleClickAction
14:05:59.295 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: value: ACTION_TASK_MANAGER
14:05:59.295 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::GetStringSetting
14:05:59.295 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::FreeStringSetting
14:05:59.295 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::FreeStringSetting
14:05:59.295 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::GetStringSetting
14:05:59.295 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueName: CombineTaskbarButtons.State1
14:05:59.295 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueNameFormatted: CombineTaskbarButtons.State1
14:05:59.295 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: value: COMBINE_ALWAYS
14:05:59.296 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::GetStringSetting
14:05:59.296 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::FreeStringSetting
14:05:59.296 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::FreeStringSetting
14:05:59.296 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::GetStringSetting
14:05:59.296 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueName: CombineTaskbarButtons.State2
14:05:59.296 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueNameFormatted: CombineTaskbarButtons.State2
14:05:59.296 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: value: COMBINE_NEVER
14:05:59.296 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::GetStringSetting
14:05:59.296 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::FreeStringSetting
14:05:59.296 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::FreeStringSetting
14:05:59.296 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::GetStringSetting
14:05:59.296 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueName: CombineTaskbarButtons.StateSecondary1
14:05:59.296 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueNameFormatted: CombineTaskbarButtons.StateSecondary1
14:05:59.296 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: value: 
14:05:59.296 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::GetStringSetting
14:05:59.296 9252 explorer.exe  [WH] [taskbar-empty-space-clicks] [1479:ParseTaskBarButtonsState]: ERROR: Unknown state '' for option 'CombineTaskbarButtons.StateSecondary1'!
14:05:59.296 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::FreeStringSetting
14:05:59.297 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::FreeStringSetting
14:05:59.297 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::GetStringSetting
14:05:59.297 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueName: CombineTaskbarButtons.StateSecondary2
14:05:59.297 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueNameFormatted: CombineTaskbarButtons.StateSecondary2
14:05:59.297 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: value: 
14:05:59.297 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::GetStringSetting
14:05:59.297 9252 explorer.exe  [WH] [taskbar-empty-space-clicks] [1479:ParseTaskBarButtonsState]: ERROR: Unknown state '' for option 'CombineTaskbarButtons.StateSecondary2'!
14:05:59.297 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::FreeStringSetting
14:05:59.297 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::FreeStringSetting
14:05:59.297 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::GetStringSetting
14:05:59.297 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueName: VirtualKeyPress[%d]
14:05:59.297 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueNameFormatted: VirtualKeyPress[0]
14:05:59.297 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: value: 0x5B
14:05:59.297 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::GetStringSetting
14:05:59.297 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::FreeStringSetting
14:05:59.297 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::FreeStringSetting
14:05:59.297 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::GetStringSetting
14:05:59.297 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueName: VirtualKeyPress[%d]
14:05:59.297 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueNameFormatted: VirtualKeyPress[1]
14:05:59.297 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: value: 0xBC
14:05:59.297 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::GetStringSetting
14:05:59.298 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::FreeStringSetting
14:05:59.298 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::FreeStringSetting
14:05:59.298 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::GetStringSetting
14:05:59.298 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueName: VirtualKeyPress[%d]
14:05:59.298 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueNameFormatted: VirtualKeyPress[2]
14:05:59.298 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: value: 
14:05:59.298 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::GetStringSetting
14:05:59.298 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::FreeStringSetting
14:05:59.298 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::FreeStringSetting
14:05:59.298 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::GetStringSetting
14:05:59.298 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueName: StartProcess
14:05:59.298 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: valueNameFormatted: StartProcess
14:05:59.298 9252 explorer.exe  [WH] [LoadedMod::GetStringSetting]: value: C:\Windows\System32\notepad.exe
14:05:59.298 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::GetStringSetting
14:05:59.298 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::FreeStringSetting
14:05:59.298 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::FreeStringSetting
14:05:59.298 9252 explorer.exe  [WH] [taskbar-empty-space-clicks] [1363:WindowsVersionInit]: INFO: Windows version (major.minor.build): 10.0.22621
14:05:59.298 9252 explorer.exe  [WH] [taskbar-empty-space-clicks] [2051:Wh_ModInit]: INFO: Using taskbar version: WIN_11_TASKBAR
14:05:59.299 9252 explorer.exe  [WH] [taskbar-empty-space-clicks] [2061:Wh_ModInit]: INFO: COM initilized
14:05:59.305 9252 explorer.exe  [WH] [taskbar-empty-space-clicks] [2074:Wh_ModInit]: INFO: UIAutomation COM initilized
14:05:59.308 9252 explorer.exe  [WH] [taskbar-empty-space-clicks] [2089:Wh_ModInit]: INFO: DeviceEnumerator COM initilized
14:05:59.308 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::SetFunctionHook
14:05:59.308 9252 explorer.exe  [WH] [LoadedMod::SetFunctionHook]: Target: 00007FFD6E86F200
14:05:59.308 9252 explorer.exe  [WH] [LoadedMod::SetFunctionHook]: Hook: 00007FFD5DAC21A0
14:05:59.308 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::SetFunctionHook
14:05:59.308 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::SetFunctionHook
14:05:59.308 9252 explorer.exe  [WH] [LoadedMod::SetFunctionHook]: Target: 00007FFD6E88AA70
14:05:59.308 9252 explorer.exe  [WH] [LoadedMod::SetFunctionHook]: Hook: 00007FFD5DAC2250
14:05:59.308 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::SetFunctionHook
14:05:59.308 9252 explorer.exe  [WH] [taskbar-empty-space-clicks] [2128:Wh_ModInit]: ERROR: Failed to find Shell_TrayWnd class. Something changed under the hood! Taskbar might not get hooked properly!
14:05:59.308 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::Initialize
14:05:59.311 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::LoadedMod
14:05:59.311 9252 explorer.exe  [WH] [LoadedMod::LoadedMod]: Windows 10.0.22621
14:05:59.311 9252 explorer.exe  [WH] [LoadedMod::LoadedMod]: Windhawk v1.4.1
14:05:59.311 9252 explorer.exe  [WH] [LoadedMod::LoadedMod]: Mod id: windows-11-taskbar-styler
14:05:59.311 9252 explorer.exe  [WH] [LoadedMod::LoadedMod]: Mod version: 1.2.3
14:05:59.311 9252 explorer.exe  [WH] [LoadedMod::LoadedMod]: Mod base address: 00007FFD5A700000
14:05:59.311 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::LoadedMod
14:05:59.312 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::Initialize
14:05:59.312 9252 explorer.exe  [WH] [windows-11-taskbar-styler] [2482:Wh_ModInit]: >
14:05:59.312 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::GetStringValue
14:05:59.312 9252 explorer.exe  [WH] [LoadedMod::GetStringValue]: valueName: symbol-cache-Taskbar.View.dll
14:05:59.312 9252 explorer.exe  [WH] [LoadedMod::GetStringValue]: value: 1#1709675630#8499200#public: void __cdecl winrt::Taskbar::implementation::TaskbarBackground::OnApplyTemplate(void)#921408#bool __cdecl winrt::Windows::Foundation::operator==(struct winrt::Windows::Foundation::IUnknown const &,struct winrt::Windows::Foundation::IUnknown const &)#45456
14:05:59.312 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::GetStringValue
14:05:59.313 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::SetFunctionHook
14:05:59.313 9252 explorer.exe  [WH] [LoadedMod::SetFunctionHook]: Target: 00007FFD4DA00F40
14:05:59.313 9252 explorer.exe  [WH] [LoadedMod::SetFunctionHook]: Hook: 00007FFD5A709470
14:05:59.313 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::SetFunctionHook
14:05:59.313 9252 explorer.exe  [WH] [windows-11-taskbar-styler] [237:operator()]: Hooked 00007FFD4DA00F40: public: void __cdecl winrt::Taskbar::implementation::TaskbarBackground::OnApplyTemplate(void)
14:05:59.313 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::SetFunctionHook
14:05:59.313 9252 explorer.exe  [WH] [LoadedMod::SetFunctionHook]: Target: 00007FFD4D92B190
14:05:59.313 9252 explorer.exe  [WH] [LoadedMod::SetFunctionHook]: Hook: 00007FFD5A7094C0
14:05:59.313 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::SetFunctionHook
14:05:59.313 9252 explorer.exe  [WH] [windows-11-taskbar-styler] [237:operator()]: Hooked 00007FFD4D92B190: bool __cdecl winrt::Windows::Foundation::operator==(struct winrt::Windows::Foundation::IUnknown const &,struct winrt::Windows::Foundation::IUnknown const &)
14:05:59.313 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::SetFunctionHook
14:05:59.313 9252 explorer.exe  [WH] [LoadedMod::SetFunctionHook]: Target: 00007FFD6E86F200
14:05:59.313 9252 explorer.exe  [WH] [LoadedMod::SetFunctionHook]: Hook: 00007FFD5A7091E0
14:05:59.313 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::SetFunctionHook
14:05:59.313 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::Initialize
14:05:59.315 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::AfterInit
14:05:59.315 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::AfterInit
14:05:59.315 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::ModDebugLoggingScope]: >>> Entering LoadedMod::AfterInit
14:05:59.315 9252 explorer.exe  [WH] [windows-11-taskbar-styler] [2496:Wh_ModAfterInit]: >
14:05:59.315 9252 explorer.exe  [WH] [`anonymous-namespace'::ModDebugLoggingScope::~ModDebugLoggingScope]: <<< Exiting LoadedMod::AfterInit
14:05:59.959 9252 explorer.exe  [WH] [taskbar-empty-space-clicks] [860:Uninit]: COM de-initialized