Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

Commit

Permalink
Merge branch 'valinet:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
creeper-0910 authored Oct 4, 2023
2 parents 12db08a + fbaad56 commit 9c47c41
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 44 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ Tested on OS builds 22000.2416, 22621.1, 22621.2134, 22621.2361, 22631.2338, and
* File Explorer: EP now tries to avoid crashes related to the new Windows App SDK views. (b426d2c)
* On OS builds 22621+, fixed a bug that crashed `explorer.exe` when required functions in `twinui.pcshell.dll` (for Win+X and Windows 10 Alt+Tab) could not be found using the fallback method. (6023718)

##### 2

* Taskbar11: Fixed a bug that reset the "never combine" setting on OS builds 22621.2361+ (#2207) (085b3dd)
* Taskbar10: Fixed Wi-Fi flyout buttons on OS build 22621 (0706393)
* Start10: Fixed start menu folders, show recently added, and show frequently used apps settings not being applied on OS builds 22621.2134+ (e28940d)

Many thanks to @Amrsatrio for sustained efforts in maintaining and improving ExplorerPatcher.

## 22621.2283.57

Tested on OS build 22621.2283. Installer requires Internet connectivity.
Expand Down
51 changes: 10 additions & 41 deletions ExplorerPatcher/dllmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -11506,51 +11506,20 @@ DWORD Inject(BOOL bIsExplorer)
ResetEvent(hEvent);
}*/

if (bOldTaskbar)
{
if (IsWindows11())
{
CreateThread(
0,
0,
PlayStartupSound,
0,
0,
0
);
if (IsWindows11()) {
if (bOldTaskbar) {
CreateThread(0, 0, PlayStartupSound, 0, 0, 0);
printf("Play startup sound thread...\n");
}
}


if (bOldTaskbar)
{
if (IsWindows11())
{
CreateThread(
0,
0,
SignalShellReady,
dwExplorerReadyDelay,
0,
0
);
CreateThread(0, 0, SignalShellReady, dwExplorerReadyDelay, 0, 0);
printf("Signal shell ready...\n");
} else {
CreateThread(0, 0, FixTaskbarAutohide, 0, 0, 0);
if (!IsWindows11Version22H2Build2361OrHigher()) {
RegDeleteKeyValueW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", L"TaskbarGlomLevel");
RegDeleteKeyValueW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", L"MMTaskbarGlomLevel");
}
}
}
else
{
CreateThread(
0,
0,
FixTaskbarAutohide,
0,
0,
0
);
RegDeleteKeyValueW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", L"TaskbarGlomLevel");
RegDeleteKeyValueW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", L"MMTaskbarGlomLevel");
}

if (IsWindows11Version22H2OrHigher() && bOldTaskbar)
{
Expand Down
1 change: 1 addition & 0 deletions ExplorerPatcher/lvt.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <winstring.h>
#include <stdio.h>
#include <Shlwapi.h>
#include "osutility.h"

#define LVT_LOC_NONE 0
#define LVT_LOC_BOTTOMLEFT 1
Expand Down
7 changes: 7 additions & 0 deletions ExplorerPatcher/osutility.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,11 @@ inline BOOL IsWindows11Version22H2Build2134OrHigher()
if (global_rovi.dwBuildNumber > 22621) return TRUE;
return global_rovi.dwBuildNumber == 22621 && global_ubr >= 2134;
}

inline BOOL IsWindows11Version22H2Build2361OrHigher()
{
if (!global_rovi.dwMajorVersion) global_ubr = VnGetOSVersionAndUBR(&global_rovi);
if (global_rovi.dwBuildNumber > 22621) return TRUE;
return global_rovi.dwBuildNumber == 22621 && global_ubr >= 2361;
}
#endif
10 changes: 7 additions & 3 deletions version.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define VER_MAJOR 22621
#define VER_MINOR 2361
#define VER_BUILD_HI 58
#define VER_BUILD_LO 1
#define VER_BUILD_LO 2
#define VER_FLAGS VS_FF_PRERELEASE


Expand All @@ -11,6 +11,10 @@

#define VER_STR(arg) #arg

#define STRINGIFYVER2(X) #X
#define STRINGIFYVER(X) STRINGIFYVER2(X)
#define VER_WITH_DOTS STRINGIFYVER(VER_MAJOR) "." STRINGIFYVER(VER_MINOR) "." STRINGIFYVER(VER_BUILD_HI) "." STRINGIFYVER(VER_BUILD_LO)

// The String form of the version numbers
#define VER_FILE_STRING VALUE "FileVersion", "22621.2361.58.1"
#define VER_PRODUCT_STRING VALUE "ProductVersion", "22621.2361.58.1"
#define VER_FILE_STRING VALUE "FileVersion", VER_WITH_DOTS
#define VER_PRODUCT_STRING VALUE "ProductVersion", VER_WITH_DOTS

0 comments on commit 9c47c41

Please sign in to comment.