Skip to content

Fix Explorer restart issue#4727

Open
babamohammed2022 wants to merge 6 commits into
ramensoftware:mainfrom
babamohammed2022:patch-8
Open

Fix Explorer restart issue#4727
babamohammed2022 wants to merge 6 commits into
ramensoftware:mainfrom
babamohammed2022:patch-8

Conversation

@babamohammed2022

@babamohammed2022 babamohammed2022 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Changelog

If this pull request updates an existing mod, describe the changes below:

  • Fixed an issue with the mod not working properly when explorer is restarted
  • Made system tray redirect more robust

Mod authorship

If this pull request introduces a new mod, please complete the section below.

This mod was created by:

    • The submitter, without AI assistance
    • The submitter, with AI assistance
    • Claude
    • ChatGPT
    • Gemini
    • Another AI (please specify):
    • Other (please specify):

Please select the options that best apply. Your selection does not affect the acceptance criteria, but it helps reviewers understand the context of the code and provide relevant feedback.

@Anixx

Anixx commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

After Explorer's restart, the Network redirect still stops working.

@babamohammed2022

babamohammed2022 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

After Explorer's restart, the Network redirect still stops working.

Does the rest of the mod (redirects, sound context menu redirect) work? So that I can understand what is fixed and what isn't

@Anixx

Anixx commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

The other, you mean sound? Works for now.

@Anixx

Anixx commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

After Explorer's restart the network redirect still does not work.

@Anixx

Anixx commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

You do not need fallback, you need to make the existing method to not depend on whether the mod was activated when explorer was running or explorer was started later.

In the latest version the redirect still does not work after explorer's restart.

@babamohammed2022

babamohammed2022 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

You do not need fallback, you need to make the existing method to not depend on whether the mod was activated when explorer was running or explorer was started later.

In the latest version the redirect still does not work after explorer's restart.

OK, thanks for the suggestion. I will take more time to study a more fitting solution along with fixing the validation issue. Since it works on my setup (Windows 11 24H2 with ExplorerPatcher) it thought that it was fixed.

@babamohammed2022

Copy link
Copy Markdown
Contributor Author

You do not need fallback, you need to make the existing method to not depend on whether the mod was activated when explorer was running or explorer was started later.

In the latest version the redirect still does not work after explorer's restart.

Let me know if it works now. I've tested on Windows 11 24H2 with ExplorerPatcher (as mentioned above) and it seems to work.
LOGS:
DbgViewMini v1.0.4
Listening for OutputDebugString messages...
09:44:03.534 9492 explorer.exe [WH] [local@settings-to-control-panel] [1527:Wh_ModInit]: Redirect Settings to Control Panel v10.0.23
09:44:03.539 9492 explorer.exe [WH] [local@settings-to-control-panel] [1339:TryInstallPniduiHook]: [PNIDUI-HOOK] pnidui.dll loaded at 0x00007FFAA90D0000
09:44:03.539 9492 explorer.exe [WH] [local@settings-to-control-panel] [1357:TryInstallPniduiHook]: [PNIDUI-HOOK] Successfully installed pnidui.dll hook
09:44:03.797 9492 explorer.exe [WH] [local@settings-to-control-panel] [1499:InstallSyscallFallback]: [SYSCALL-HOOK] NtUserTrackPopupMenuEx hooked successfully
09:44:06.745 9492 explorer.exe [WH] [local@settings-to-control-panel] [797:NtUserTrackPopupMenuEx_Hook]: [SYSCALL-HOOK] User selected target item, redirecting
09:44:07.018 7500 explorer.exe [WH] [local@settings-to-control-panel] [1527:Wh_ModInit]: Redirect Settings to Control Panel v10.0.23
09:44:07.020 7500 explorer.exe [WH] [local@settings-to-control-panel] [1334:TryInstallPniduiHook]: [PNIDUI-HOOK] pnidui.dll not loaded yet
09:44:07.020 7500 explorer.exe [WH] [local@settings-to-control-panel] [1446:InstallImmersiveMenuHooks]: [PNIDUI-HOOK] Retry thread created
09:44:07.020 7500 explorer.exe [WH] [local@settings-to-control-panel] [1373:PniduiRetryThread]: [PNIDUI-HOOK] Retry thread started - waiting for pnidui.dll to load
09:44:07.242 7500 explorer.exe [WH] [local@settings-to-control-panel] [1499:InstallSyscallFallback]: [SYSCALL-HOOK] NtUserTrackPopupMenuEx hooked successfully
09:44:07.348 10792 explorer.exe [WH] [local@settings-to-control-panel] [1527:Wh_ModInit]: Redirect Settings to Control Panel v10.0.23
09:44:07.351 10792 explorer.exe [WH] [local@settings-to-control-panel] [1334:TryInstallPniduiHook]: [PNIDUI-HOOK] pnidui.dll not loaded yet
09:44:07.351 10792 explorer.exe [WH] [local@settings-to-control-panel] [1446:InstallImmersiveMenuHooks]: [PNIDUI-HOOK] Retry thread created
09:44:07.351 10792 explorer.exe [WH] [local@settings-to-control-panel] [1373:PniduiRetryThread]: [PNIDUI-HOOK] Retry thread started - waiting for pnidui.dll to load
09:44:07.552 10792 explorer.exe [WH] [local@settings-to-control-panel] [1499:InstallSyscallFallback]: [SYSCALL-HOOK] NtUserTrackPopupMenuEx hooked successfully
09:44:20.681 9664 explorer.exe [WH] [local@settings-to-control-panel] [1527:Wh_ModInit]: Redirect Settings to Control Panel v10.0.23
09:44:20.681 9664 explorer.exe [WH] [local@settings-to-control-panel] [1334:TryInstallPniduiHook]: [PNIDUI-HOOK] pnidui.dll not loaded yet
09:44:20.681 9664 explorer.exe [WH] [local@settings-to-control-panel] [1446:InstallImmersiveMenuHooks]: [PNIDUI-HOOK] Retry thread created
09:44:20.681 9664 explorer.exe [WH] [local@settings-to-control-panel] [1373:PniduiRetryThread]: [PNIDUI-HOOK] Retry thread started - waiting for pnidui.dll to load
09:44:20.928 9664 explorer.exe [WH] [local@settings-to-control-panel] [1499:InstallSyscallFallback]: [SYSCALL-HOOK] NtUserTrackPopupMenuEx hooked successfully
09:44:51.227 9664 explorer.exe [WH] [local@settings-to-control-panel] [1390:PniduiRetryThread]: [PNIDUI-HOOK] pnidui.dll not loaded after timeout, giving up
09:44:57.144 9664 explorer.exe [WH] [local@settings-to-control-panel] [797:NtUserTrackPopupMenuEx_Hook]: [SYSCALL-HOOK] User selected target item, redirecting
09:44:57.461 9644 explorer.exe [WH] [local@settings-to-control-panel] [1527:Wh_ModInit]: Redirect Settings to Control Panel v10.0.23
09:44:57.464 9644 explorer.exe [WH] [local@settings-to-control-panel] [1334:TryInstallPniduiHook]: [PNIDUI-HOOK] pnidui.dll not loaded yet
09:44:57.465 9644 explorer.exe [WH] [local@settings-to-control-panel] [1446:InstallImmersiveMenuHooks]: [PNIDUI-HOOK] Retry thread created
09:44:57.465 9644 explorer.exe [WH] [local@settings-to-control-panel] [1373:PniduiRetryThread]: [PNIDUI-HOOK] Retry thread started - waiting for pnidui.dll to load
09:44:57.678 9644 explorer.exe [WH] [local@settings-to-control-panel] [1499:InstallSyscallFallback]: [SYSCALL-HOOK] NtUserTrackPopupMenuEx hooked successfully
09:44:57.786 6048 explorer.exe [WH] [local@settings-to-control-panel] [1527:Wh_ModInit]: Redirect Settings to Control Panel v10.0.23
09:44:57.789 6048 explorer.exe [WH] [local@settings-to-control-panel] [1334:TryInstallPniduiHook]: [PNIDUI-HOOK] pnidui.dll not loaded yet
09:44:57.789 6048 explorer.exe [WH] [local@settings-to-control-panel] [1446:InstallImmersiveMenuHooks]: [PNIDUI-HOOK] Retry thread created
09:44:57.791 6048 explorer.exe [WH] [local@settings-to-control-panel] [1373:PniduiRetryThread]: [PNIDUI-HOOK] Retry thread started - waiting for pnidui.dll to load
09:44:57.996 6048 explorer.exe [WH] [local@settings-to-control-panel] [1499:InstallSyscallFallback]: [SYSCALL-HOOK] NtUserTrackPopupMenuEx hooked successfully
09:45:28.371 6048 explorer.exe [WH] [local@settings-to-control-panel] [1390:PniduiRetryThread]: [PNIDUI-HOOK] pnidui.dll not loaded after timeout, giving up
09:47:09.175 9664 explorer.exe [WH] [local@settings-to-control-panel] [797:NtUserTrackPopupMenuEx_Hook]: [SYSCALL-HOOK] User selected target item, redirecting
09:47:09.301 9644 explorer.exe [WH] [local@settings-to-control-panel] [1527:Wh_ModInit]: Redirect Settings to Control Panel v10.0.23
09:47:09.306 9644 explorer.exe [WH] [local@settings-to-control-panel] [1334:TryInstallPniduiHook]: [PNIDUI-HOOK] pnidui.dll not loaded yet
09:47:09.306 9644 explorer.exe [WH] [local@settings-to-control-panel] [1446:InstallImmersiveMenuHooks]: [PNIDUI-HOOK] Retry thread created
09:47:09.307 9644 explorer.exe [WH] [local@settings-to-control-panel] [1373:PniduiRetryThread]: [PNIDUI-HOOK] Retry thread started - waiting for pnidui.dll to load
09:47:09.522 9644 explorer.exe [WH] [local@settings-to-control-panel] [1499:InstallSyscallFallback]: [SYSCALL-HOOK] NtUserTrackPopupMenuEx hooked successfully
09:47:09.624 11076 explorer.exe [WH] [local@settings-to-control-panel] [1527:Wh_ModInit]: Redirect Settings to Control Panel v10.0.23
09:47:09.629 11076 explorer.exe [WH] [local@settings-to-control-panel] [1334:TryInstallPniduiHook]: [PNIDUI-HOOK] pnidui.dll not loaded yet
09:47:09.629 11076 explorer.exe [WH] [local@settings-to-control-panel] [1446:InstallImmersiveMenuHooks]: [PNIDUI-HOOK] Retry thread created
09:47:09.629 11076 explorer.exe [WH] [local@settings-to-control-panel] [1373:PniduiRetryThread]: [PNIDUI-HOOK] Retry thread started - waiting for pnidui.dll to load
09:47:09.855 11076 explorer.exe [WH] [local@settings-to-control-panel] [1499:InstallSyscallFallback]: [SYSCALL-HOOK] NtUserTrackPopupMenuEx hooked successfully
09:47:35.118 9664 explorer.exe [WH] [local@settings-to-control-panel] [1574:Wh_ModUninit]: [PNIDUI-HOOK] Stopping retry thread...
09:47:35.195 9664 explorer.exe [WH] [local@settings-to-control-panel] [1527:Wh_ModInit]: Redirect Settings to Control Panel v10.0.24
09:47:35.197 9664 explorer.exe [WH] [local@settings-to-control-panel] [1339:TryInstallPniduiHook]: [PNIDUI-HOOK] pnidui.dll loaded at 0x00007FFAA9DC0000
09:47:35.197 9664 explorer.exe [WH] [local@settings-to-control-panel] [1357:TryInstallPniduiHook]: [PNIDUI-HOOK] Successfully installed pnidui.dll hook
09:47:35.347 11076 explorer.exe [WH] [local@settings-to-control-panel] [1574:Wh_ModUninit]: [PNIDUI-HOOK] Stopping retry thread...
09:47:35.473 9664 explorer.exe [WH] [local@settings-to-control-panel] [1499:InstallSyscallFallback]: [SYSCALL-HOOK] NtUserTrackPopupMenuEx hooked successfully
09:47:35.613 11076 explorer.exe [WH] [local@settings-to-control-panel] [1390:PniduiRetryThread]: [PNIDUI-HOOK] pnidui.dll not loaded after timeout, giving up
09:47:35.746 11076 explorer.exe [WH] [local@settings-to-control-panel] [1527:Wh_ModInit]: Redirect Settings to Control Panel v10.0.24
09:47:35.749 11076 explorer.exe [WH] [local@settings-to-control-panel] [1334:TryInstallPniduiHook]: [PNIDUI-HOOK] pnidui.dll not loaded yet
09:47:35.752 11076 explorer.exe [WH] [local@settings-to-control-panel] [1446:InstallImmersiveMenuHooks]: [PNIDUI-HOOK] Retry thread created
09:47:35.755 11076 explorer.exe [WH] [local@settings-to-control-panel] [1373:PniduiRetryThread]: [PNIDUI-HOOK] Retry thread started - waiting for pnidui.dll to load
09:47:36.674 11076 explorer.exe [WH] [local@settings-to-control-panel] [1499:InstallSyscallFallback]: [SYSCALL-HOOK] NtUserTrackPopupMenuEx hooked successfully
09:48:06.161 11076 explorer.exe [WH] [local@settings-to-control-panel] [1390:PniduiRetryThread]: [PNIDUI-HOOK] pnidui.dll not loaded after timeout, giving up
09:50:03.508 9664 explorer.exe [WH] [local@settings-to-control-panel] [1524:Wh_ModInit]: Redirect Settings to Control Panel v10.0.24
09:50:03.595 9664 explorer.exe [WH] [local@settings-to-control-panel] [1339:TryInstallPniduiHook]: [PNIDUI-HOOK] pnidui.dll loaded at 0x00007FFAA9DC0000
09:50:03.597 9664 explorer.exe [WH] [local@settings-to-control-panel] [1356:TryInstallPniduiHook]: [PNIDUI-HOOK] Successfully installed pnidui.dll hook
09:50:03.908 9664 explorer.exe [WH] [local@settings-to-control-panel] [1496:InstallSyscallFallback]: [SYSCALL-HOOK] NtUserTrackPopupMenuEx hooked successfully

@Anixx

Anixx commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Network redirect does not work after Explorer's restart.

@babamohammed2022

babamohammed2022 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Network redirect does not work after Explorer's restart.

In this case since it works on my setup I need the logs (if present) to see what happens because perhaps something should be logged at least, if possible please send them so that I avoid random fix attempts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants