1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2025-02-17 11:08:41 +01:00

Properly fixes #78, fixes #85

This commit is contained in:
Valentin Radu 2021-10-13 20:30:41 +03:00
parent 21cc562f45
commit bca9f38a5b
3 changed files with 15 additions and 11 deletions

View File

@ -2,12 +2,15 @@
This document includes the same release notes as in the [Releases](https://github.com/valinet/ExplorerPatcher/releases) section on GitHub. This document includes the same release notes as in the [Releases](https://github.com/valinet/ExplorerPatcher/releases) section on GitHub.
## 22000.258.0.26 ## 22000.258.26.2
Tested on build: 22000.258. Tested on build: 22000.258.
* Compatibility with OS build 22000.258
* Option to open Network and Sharing Center instead if Network settings when right clicking the network icon in the system tray * Option to open Network and Sharing Center instead if Network settings when right clicking the network icon in the system tray
* Centered network and sound right click menus and made them toggle on right click * Centered network and sound right click menus and made them toggle on right click
* Reliability enhancements for Start menu positioning (#78) (.1)
* Fixes #85 (.2)
## 22000.194.0.25 ## 22000.194.0.25

View File

@ -51,8 +51,8 @@ END
// //
VS_VERSION_INFO VERSIONINFO VS_VERSION_INFO VERSIONINFO
FILEVERSION 22000,258,0,26 FILEVERSION 22000,258,26,2
PRODUCTVERSION 22000,258,0,26 PRODUCTVERSION 22000,258,26,2
FILEFLAGSMASK 0x3fL FILEFLAGSMASK 0x3fL
#ifdef _DEBUG #ifdef _DEBUG
FILEFLAGS 0x1L FILEFLAGS 0x1L
@ -69,12 +69,12 @@ BEGIN
BEGIN BEGIN
VALUE "CompanyName", "VALINET Solutions SRL" VALUE "CompanyName", "VALINET Solutions SRL"
VALUE "FileDescription", "ExplorerPatcher" VALUE "FileDescription", "ExplorerPatcher"
VALUE "FileVersion", "22000.258.0.26" VALUE "FileVersion", "22000.258.26.2"
VALUE "InternalName", "ExplorerPatcher.dll" VALUE "InternalName", "ExplorerPatcher.dll"
VALUE "LegalCopyright", "Copyright (C) 2006-2021 VALINET Solutions SRL. All rights reserved." VALUE "LegalCopyright", "Copyright (C) 2006-2021 VALINET Solutions SRL. All rights reserved."
VALUE "OriginalFilename", "ExplorerPatcher.dll" VALUE "OriginalFilename", "ExplorerPatcher.dll"
VALUE "ProductName", "ExplorerPatcher" VALUE "ProductName", "ExplorerPatcher"
VALUE "ProductVersion", "22000.258.0.26" VALUE "ProductVersion", "22000.258.26.2"
END END
END END
BLOCK "VarFileInfo" BLOCK "VarFileInfo"

View File

@ -1453,11 +1453,6 @@ LRESULT ShellTrayWndProcHook(
#pragma region "Notify shell ready (fixes delay at logon)" #pragma region "Notify shell ready (fixes delay at logon)"
DWORD SignalShellReady(DWORD wait) DWORD SignalShellReady(DWORD wait)
{ {
if (wait)
{
Sleep(wait);
}
printf("Started \"Signal shell ready\" thread.\n"); printf("Started \"Signal shell ready\" thread.\n");
while (!wait && TRUE) while (!wait && TRUE)
@ -1500,6 +1495,7 @@ DWORD SignalShellReady(DWORD wait)
0 0
); );
*/ */
EnumDisplayMonitors(NULL, NULL, PositionStartMenuForMonitor, GetStartMenuPosition());
/*printf("hook show desktop\n"); /*printf("hook show desktop\n");
void* ShellTrayWndProcFuncT = GetWindowLongPtrW(hWnd, GWLP_WNDPROC); void* ShellTrayWndProcFuncT = GetWindowLongPtrW(hWnd, GWLP_WNDPROC);
if (ShellTrayWndProcHook != ShellTrayWndProcFuncT) if (ShellTrayWndProcHook != ShellTrayWndProcFuncT)
@ -1518,10 +1514,15 @@ DWORD SignalShellReady(DWORD wait)
{ {
Sleep(600); Sleep(600);
} }
else
{
Sleep(wait);
}
HANDLE hEvent = CreateEvent(0, 0, 0, L"ShellDesktopSwitchEvent"); HANDLE hEvent = CreateEvent(0, 0, 0, L"ShellDesktopSwitchEvent");
if (hEvent) if (hEvent)
{ {
printf(">>> Signal shell ready.\n");
SetEvent(hEvent); SetEvent(hEvent);
} }
@ -1985,7 +1986,7 @@ __declspec(dllexport) DWORD WINAPI main(
} }
CreateThread(0, 0, PositionStartMenuTimeout, 0, 0, 0); //CreateThread(0, 0, PositionStartMenuTimeout, 0, 0, 0);
} }
else else
{ {