1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-28 01:10:55 +01:00
Commit Graph

455 Commits

Author SHA1 Message Date
Amrsatrio
1115643206 Taskbar10: Improved patterns of Moment 2 patches to make them work with 22621.2359 Release Preview 2023-09-22 00:13:33 +07:00
Amrsatrio
b76d62e073 Taskbar10: Fixed grammar in Moment2PatchTaskView explanation 2023-09-21 19:13:14 +07:00
Amrsatrio
cd7396e8a0 Taskbar10: Revised the method of patching Task View so that it works on 22621.2134 2023-09-21 18:41:09 +07:00
Amrsatrio
82556f08e6 Taskbar10: Fix new IME context menu on 22H2 2023-09-20 23:09:50 +07:00
Amrsatrio
3be4aabdb5 Taskbar10: Fix Win+A and Win+N on 22621.2134+ 2023-09-20 21:41:53 +07:00
Amrsatrio
e9945d115b Taskbar10: Fix volume and brightness popups on 22621.2134+ 2023-09-20 21:05:25 +07:00
Amrsatrio
765f6ceb9c Taskbar10: Added missing info in patch explanation 2023-09-20 01:33:06 +07:00
Amrsatrio
db1a168ebf Taskbar10: Try to make fixes for 22621.2134.
- Fix Action Center, Control Center, and Toast Center placements.
- Fix Task View refusing to appear.
- Fix Win+B not working.
2023-09-20 01:23:48 +07:00
Valentin Radu
2e43c679b9 Taskbar10: Correct centering of taskbar items when search box is enabled in Windows 10 2023-08-23 18:05:01 +03:00
Valentin Radu
275a91f0d9 Start10: Fixed a bug that prevented centering on Windows 10 2023-08-23 03:47:01 -07:00
Valentin Radu
46c504172c Start10: Fixed a bug that prevented the menu from working on OS builds 22621.1413 and newer 2023-07-26 15:57:53 +03:00
Valentin Radu
6fb998eb75 Version: 22621.1555.55.2 2023-04-24 04:15:27 +03:00
Valentin Radu
6bc2ea5d2b All: Fix crash when attempting to hook function on older OS builds
`RtlQueryFeatureConfiguration` is not available on old Windows 10
builds, like 17763 (LTSC 2019).
Related issue: https://github.com/valinet/ExplorerPatcher/discussions/1142
2023-03-20 23:58:32 +02:00
Valentin Radu
5649a83739 Start11: Fixed a bug that prevented the menu from working when the setting "Disable Recommended section" is used and the display scaling is 125%
Related issue: https://github.com/valinet/ExplorerPatcher/issues/1118
2023-03-20 20:48:34 +02:00
Valentin Radu
27a8fd9a6b Start11: Better enforcement for disabling the "Recommended" section 2023-03-19 05:27:36 +02:00
Valentin Radu
0de81fdc68 Resources: Updated copyright info 2023-03-19 05:27:08 +02:00
Valentin Radu
8b5443d59b Version: 22621.1413.54.1 2023-03-18 16:02:40 +02:00
Valentin Radu
1738b45866 Setup: explorer will restart using the token it was running under before starting application maintenance
The patch has been adapted to employ the old behavior when setup is
elevated using the same credentials, while using the updated code with
`CreateProcessWithTokenW` when otherwise.

Original description (via email):

"I have two accounts on my Windows machine: A normal one that is a
standard user (not admin) which I use as my main account where I have
ExplorerPatcher installed and configured, and an Admin account which is
 a Windows administrator account.

During installation and update the installer restarts itself and
requests admin privileges. For this I have to provide the password to
the Admin account. The installer then runs as that Admin user, stops
the explorer process, installs ExplorerPatcher and then tries to start
the explorer again. But the explorer never starts, which leaves me with
 an empty screen and a session without an explorer. I can then start a
Taskmanager via Ctrl + Shift + Esc and manually start the explorer, but
 this is annoying and maybe even frightening for a nontechnical user.

The reason why the explorer is not started again is that it is started
as the wrong user. It is started as the Admin user, which isn't logged
in so the explorer quits immediately.

The fix is to remember the user that the explorer was running under and
then start the new explorer for that user. I have tested these changes
in a Windows 11 virtual machine, by installing and uninstalling for a
standard user, as well as installing and uninstalling for an
administrator user."

Original patch: https://github.com/Abestanis/ExplorerPatcher/tree/fix_explorer_restart
Credit @Abestanis
2023-03-18 05:28:13 +02:00
Valentin Radu
d7e5b7d3c9 All: Implemented a mechanism to stop repeated crashes
When Windows is updated, it may fundamentally change the layout and
functionality of `explorer`'s internal data structure. Since
ExplorerPatcher intensively patches those in order to deliver its
functionality, it may lead to `explorer` crashing when it performs
these modifications while being unaware (outdated) of the latest OS
changes. The worst scenario is when the crashes happen when `explorer`
starts up (for example, when the user logs in), and could cause the
user to experience an endless loop of `explorer` crashes, and leave
him/her unable to practically use the computer.

In order to mitigate this scenario, when `explorer` starts up as the
shell, ExplorerPatcher increments a counter stored in the registry.
After a predefined timeout (by default, 10 seconds), ExplorerPatcher
will reset the counter to 0. If `explorer` crashes during this period,
the counter will not be reset. When `explorer` restarts, the cycle
repeats. If the counter reaches a predefined value (by default, 3),
instead of starting up again normally (and very probably crashing
again), ExplorerPatcher will display a message window informing the
user about what is happening, offering a few suggestions on how to
proceed next and disable its entire functionality until the next
File Explorer restart, in order to give the user a chance to perform
maintenance on the machine.
2023-03-18 05:23:12 +02:00
Valentin Radu
0ad140c47f Taskbar10: Disable tablet optimized taskbar feature
This fixes Task View and Win-Tab, Alt-Tab breaking after pressing
Win-Tab, flyouts alignment, notification center alignment, Windows key
shortcuts on OS builds 22621.1413+.

Thanks @CthRio for the heads up.
2023-03-18 00:45:13 +02:00
Valentin Radu
23a4190018 All: Infrastructure for reporting which OS features are enabled 2023-03-18 00:43:13 +02:00
Valentin Radu
4f3dab5a5c Version: 22621.1344.53.1 2023-03-01 21:29:35 +02:00
Valentin Radu
f9d702ebbf Taskbar10: Fixed a bug that crashed explorer on OS build 22621.1344
It seems Microsoft updated some stuff in `windowsudk.shellcommon.dll`
and has introduced a new interface (`ITaskbarSettings6`), from which
they call the `GetEffectiveSearchMode` method.

This is not relevant for the Windows 10 taskbar, but the code gets
called there anyway as well, so it had to be patched to support this
new interface.

This fix should address the issue and have ExplorerPatcher still work
on newer 22621-based OS builds, like 1344 ("Moment 2" update).
2023-03-01 21:19:33 +02:00
Valentin Radu
9f9d43e103 Start11: Fix "Disable recommended section" to work at 125% display scaling 2022-11-17 16:05:23 +02:00
Valentin Radu
451db3c5b6 Taskbar11: Option to use the stock taskbar context menu 2022-11-17 03:13:27 +02:00
Valentin Radu
53fad19901 Start: Better way to determine the monitor on which the Start menu will open 2022-11-17 02:52:31 +02:00
Valentin Radu
4212e357b7 Start11: Center menu on screen also works when taskbar is not at the bottom 2022-11-17 02:51:32 +02:00
Valentin Radu
2572a802db Start11: Respect "Layout" settings on 22621-based builds
Impact: The actual layout setting from Windows Settings -
Personalization - Start is ignored and the "Default" layout setting is
always used when displaying the Windows 11 Start menu on 22621-based
builds when the setting to disable the "Recommended" section is NOT
used in ExplorerPatcher Properties.

Description: The issue has been addressed by remembering the current/
previous setting and using that when setting the height of the pinned
area when the setting to disable the "Recommended" section is NOT
used in ExplorerPatcher Properties, as opposed to the previous behavior
where a hardcoded value was being used.
2022-11-15 15:35:33 +02:00
Valentin Radu
a6a88b1b87 Taskbar11: Fixed a bug that could crash explorer.exe when right clicking certain system tray icons on 22621-based builds
Impact: Failure to check against a NULL value and dereferencing it
leads to a crash in `explorer.exe` with fault offset 0xfc69 on
22621-based OS builds. This happens when right clicking certain system
tray icons, like "Epic Games Launcher" when using the Windows 11
taskbar.

Description: The issue has been addressed with improved checks: a check
against NULL values is performed before attempting to work with the
data the variables might point to.
2022-11-12 23:56:19 +02:00
Valentin Radu
5cef3b12c3 GUI: Expose sws scroll wheel behavior option 2022-10-12 18:30:04 +03:00
Valentin Radu
9d64a8c3a5 sws: Fixed a bug that could prevent correct reload of settings when entries were deleted from the registry 2022-10-12 18:29:44 +03:00
Valentin Radu
d4cae8106b All: Fix taskbar cascade and tile windows options 2022-10-12 03:01:28 +03:00
Valentin Radu
0833f513f8 General: Fix network and battery flyouts on OS build 22621 2022-10-02 23:52:37 +03:00
Valentin Radu
556aeb5aae General: Fixed a bug that could prevent the battery or network flyouts from showing 2022-10-02 23:29:59 +03:00
Valentin Radu
33d1518977 General: Support EP as version 22621
The final Windows 11 22H2 that is shipped to users is OS build 22621.

Unfortunately, I updated EP some time ago to 22622. This creates a
discrepancy between the OS build most people have and the version of
EP that they might have installed. Furthermore, I currently test EP
against OS build 22621. To make things more clear, the next version of
EP will have the major build number set to 22621.

In order to have EP use version 22621 from now on and not prevent
updating from EP 22622... to EP 22621..., I devised this workaround
where the EP version is kept to 22622 as far as updates are concerned,
but the internal build number of EP really is set to 22621.

In the future, if we want to bump the EP version to 22622 again, a
regular change in `version.h` will have the setup patcher insert a `!`
as the first character in the hash part of the version string, which
tells the updater to display that version as a real 22622 build and not
artificially decrement it to 22621.

The only slight inconvenience is that, when the next update arrives,
people will be told they upgrade to EP 22622... still, but they will
receive an EP 22621... build. But at least the updater will work and
detect the new version. From there on, subsequent versions will be
shown as 22621 in the notification if the build number for that version
really is 22621.
2022-10-02 23:03:16 +03:00
Valentin Radu
4cfc2cea4b Updates: Check remote hash against locally computed hash 2022-10-02 22:49:43 +03:00
Valentin Radu
d55f3c73c9 GUI: Support disabling File Explorer modern search bar in 32-bit applications 2022-08-07 20:44:55 +03:00
Valentin Radu
8fd7c46db0 All: Substitute RegDeleteKeyW with RegDeleteTreeW
This is because the keys should be deleted regardless of whether they
contain subkeys or not.
2022-08-07 20:40:36 +03:00
Valentin Radu
ddeaa2e538 Main: Fix typo 2022-08-07 20:28:30 +03:00
Valentin Radu
0c2f287d57 GUI, Main: Support for File Explorer - Control interface setting on OS builds 22621+ 2022-08-07 02:30:47 +03:00
Valentin Radu
c96aebee11 Explorer: Option to shrink address bar height (thanks @krlvm) 2022-08-07 00:55:44 +03:00
Valentin Radu
a3cd2a33a9 GUI: Show Widgets button toggle for Taskbar11 on OS builds 22621+ 2022-08-07 00:18:45 +03:00
Valentin Radu
0a42d5559f Taskbar11: Fix right click menu and double click to auto-hide on OS builds 22621+ 2022-08-07 00:07:04 +03:00
Valentin Radu
25660c908a GUI, Main: Disable non-functional Snap Assist style option on OS builds 22621+ 2022-08-06 23:38:22 +03:00
Valentin Radu
cb951df606 Alt-Tab: Enable Windows 10 style in OS builds 22621+ 2022-08-06 23:34:52 +03:00
Valentin Radu
7b7cf6195d Taskbar10: Fix redraw problem on OS builds 22621+ 2022-08-06 18:59:21 +03:00
Valentin Radu
5ee6e3508d Main: Fixed a bug that crashed explorer at PC startup on OS builds 22621+ 2022-08-06 05:49:31 +03:00
Valentin Radu
619d9caf21 GUI: Fixed a bug that crashed when displaying the File Explorer section on older builds 2022-08-06 04:50:35 +03:00
Valentin Radu
aeeb362045 HideExplorerSearchBar: Fixed on OS builds 22621+ 2022-08-06 04:39:04 +03:00
Valentin Radu
a90439d096 Main: Fix Windows Spotlight integration on OS builds 22621+ 2022-08-06 04:14:20 +03:00