From ab99f26687a7405948a5d84d213a93eee970ab5e Mon Sep 17 00:00:00 2001 From: Amrsatrio Date: Mon, 1 Sep 2025 05:44:45 +0700 Subject: [PATCH] Taskbar10: ep_taskbar now statically links to private functions --- ExplorerPatcher/dllmain.c | 7 +++++-- libs/sws | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 09a7607..6ca7a16 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -4338,7 +4338,7 @@ HRESULT (STDAPICALLTYPE *PeopleBand_DrawTextWithGlowFunc)( BOOL fPreMultiply, DTT_CALLBACK_PROC pfnDrawTextCallback, LPARAM lParam); -__declspec(dllexport) HRESULT STDAPICALLTYPE PeopleBand_DrawTextWithGlowHook( +HRESULT STDAPICALLTYPE PeopleBand_DrawTextWithGlowHook( HDC hdc, LPCWSTR pszText, UINT cch, @@ -4920,7 +4920,7 @@ INT64 PeopleButton_SubclassProc( } static BOOL(*SetChildWindowNoActivateFunc)(HWND); -__declspec(dllexport) BOOL explorer_SetChildWindowNoActivateHook(HWND hWnd) +BOOL explorer_SetChildWindowNoActivateHook(HWND hWnd) { TCHAR className[100]; ZeroMemory(className, 100); @@ -10807,6 +10807,9 @@ DWORD Inject(BOOL bIsExplorer) VnPatchIAT(hMyTaskbar, "user32.dll", "SendMessageW", explorer_SendMessageW); VnPatchIAT(hMyTaskbar, "user32.dll", "SetRect", explorer_SetRect); VnPatchIAT(hMyTaskbar, "user32.dll", "TrackPopupMenuEx", explorer_TrackPopupMenuExHook); + VnPatchIAT(hMyTaskbar, "user32.dll", MAKEINTRESOURCEA(2005), explorer_SetChildWindowNoActivateHook); + + VnPatchIAT(hMyTaskbar, "uxtheme.dll", MAKEINTRESOURCEA(126), PeopleBand_DrawTextWithGlowHook); } HANDLE hCombase = LoadLibraryW(L"combase.dll"); diff --git a/libs/sws b/libs/sws index 23fd4e6..083fa3b 160000 --- a/libs/sws +++ b/libs/sws @@ -1 +1 @@ -Subproject commit 23fd4e6964b4cc78b99df825a08b252f0c0b3e57 +Subproject commit 083fa3b1449729e4ebae8d913558082400b359a8