mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2024-11-13 18:50:46 +01:00
Build: Include ep_taskbar in official builds
This commit is contained in:
parent
9844324b5e
commit
146070da76
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -85,6 +85,14 @@ jobs:
|
|||||||
- name: Restore NuGet packages
|
- name: Restore NuGet packages
|
||||||
run: |
|
run: |
|
||||||
nuget restore ExplorerPatcher.sln
|
nuget restore ExplorerPatcher.sln
|
||||||
|
|
||||||
|
- name: Download ep_taskbar
|
||||||
|
uses: robinraju/release-downloader@v1
|
||||||
|
with:
|
||||||
|
repository: ExplorerPatcher/ep_taskbar_releases
|
||||||
|
fileName: ep_taskbar.*.dll
|
||||||
|
latest: true
|
||||||
|
outputDir: build/Release
|
||||||
|
|
||||||
- name: Build funchook
|
- name: Build funchook
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
<RootNamespace>CenterTitlebarTextLibrary</RootNamespace>
|
<RootNamespace>CenterTitlebarTextLibrary</RootNamespace>
|
||||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||||
<ProjectName>ExplorerPatcher</ProjectName>
|
<ProjectName>ExplorerPatcher</ProjectName>
|
||||||
<WithAltTaskbarImpl>0</WithAltTaskbarImpl>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
@ -91,11 +90,6 @@
|
|||||||
<TargetName>ExplorerPatcher.IA-32</TargetName>
|
<TargetName>ExplorerPatcher.IA-32</TargetName>
|
||||||
<OutDir>$(SolutionDir)\build\$(Configuration)\</OutDir>
|
<OutDir>$(SolutionDir)\build\$(Configuration)\</OutDir>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(WithAltTaskbarImpl)'=='1'">
|
|
||||||
<ClCompile>
|
|
||||||
<PreprocessorDefinitions>WITH_ALT_TASKBAR_IMPL=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
@ -11868,7 +11868,6 @@ BOOL CrashCounterHandleEntryPoint()
|
|||||||
|
|
||||||
#pragma region "Loader for alternate taskbar implementation"
|
#pragma region "Loader for alternate taskbar implementation"
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
#if WITH_ALT_TASKBAR_IMPL
|
|
||||||
BOOL CheckExplorerSymbols(symbols_addr* symbols_PTRS)
|
BOOL CheckExplorerSymbols(symbols_addr* symbols_PTRS)
|
||||||
{
|
{
|
||||||
BOOL bAllValid = TRUE;
|
BOOL bAllValid = TRUE;
|
||||||
@ -11955,7 +11954,6 @@ HMODULE PrepareAlternateTaskbarImplementation(symbols_addr* symbols_PTRS, const
|
|||||||
return hMyTaskbar;
|
return hMyTaskbar;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
|
|
||||||
@ -12446,11 +12444,7 @@ DWORD Inject(BOOL bIsExplorer)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if WITH_ALT_TASKBAR_IMPL
|
|
||||||
const WCHAR* pszTaskbarDll = GetTaskbarDllChecked(&symbols_PTRS);
|
const WCHAR* pszTaskbarDll = GetTaskbarDllChecked(&symbols_PTRS);
|
||||||
#else
|
|
||||||
const WCHAR* pszTaskbarDll = NULL;
|
|
||||||
#endif
|
|
||||||
if (bOldTaskbar >= 2 && !pszTaskbarDll)
|
if (bOldTaskbar >= 2 && !pszTaskbarDll)
|
||||||
{
|
{
|
||||||
bOldTaskbar = 1;
|
bOldTaskbar = 1;
|
||||||
@ -12808,9 +12802,7 @@ DWORD Inject(BOOL bIsExplorer)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
VnPatchIAT(hTwinuiPcshell, "API-MS-WIN-CORE-REGISTRY-L1-1-0.DLL", "RegGetValueW", twinuipcshell_RegGetValueW);
|
VnPatchIAT(hTwinuiPcshell, "API-MS-WIN-CORE-REGISTRY-L1-1-0.DLL", "RegGetValueW", twinuipcshell_RegGetValueW);
|
||||||
#if WITH_ALT_TASKBAR_IMPL
|
|
||||||
HMODULE hMyTaskbar = PrepareAlternateTaskbarImplementation(&symbols_PTRS, pszTaskbarDll);
|
HMODULE hMyTaskbar = PrepareAlternateTaskbarImplementation(&symbols_PTRS, pszTaskbarDll);
|
||||||
#endif
|
|
||||||
printf("Setup twinui.pcshell functions done\n");
|
printf("Setup twinui.pcshell functions done\n");
|
||||||
|
|
||||||
|
|
||||||
@ -13196,10 +13188,8 @@ DWORD Inject(BOOL bIsExplorer)
|
|||||||
|
|
||||||
|
|
||||||
VnPatchDelayIAT(hExplorer, "ext-ms-win-rtcore-ntuser-window-ext-l1-1-0.dll", "GetClientRect", TaskbarCenter_GetClientRectHook);
|
VnPatchDelayIAT(hExplorer, "ext-ms-win-rtcore-ntuser-window-ext-l1-1-0.dll", "GetClientRect", TaskbarCenter_GetClientRectHook);
|
||||||
#if WITH_ALT_TASKBAR_IMPL
|
|
||||||
if (hMyTaskbar)
|
if (hMyTaskbar)
|
||||||
VnPatchIAT(hMyTaskbar, "USER32.dll", "GetClientRect", TaskbarCenter_GetClientRectHook);
|
VnPatchIAT(hMyTaskbar, "USER32.dll", "GetClientRect", TaskbarCenter_GetClientRectHook);
|
||||||
#endif
|
|
||||||
VnPatchIAT(hExplorer, "SHCORE.dll", (LPCSTR)190, TaskbarCenter_SHWindowsPolicy);
|
VnPatchIAT(hExplorer, "SHCORE.dll", (LPCSTR)190, TaskbarCenter_SHWindowsPolicy);
|
||||||
printf("Initialized taskbar centering module.\n");
|
printf("Initialized taskbar centering module.\n");
|
||||||
|
|
||||||
|
@ -32,10 +32,6 @@
|
|||||||
#define WM_MSG_GUI_SECTION WM_USER + 1
|
#define WM_MSG_GUI_SECTION WM_USER + 1
|
||||||
#define WM_MSG_GUI_SECTION_GET 1
|
#define WM_MSG_GUI_SECTION_GET 1
|
||||||
|
|
||||||
#ifndef WITH_ALT_TASKBAR_IMPL
|
|
||||||
#define WITH_ALT_TASKBAR_IMPL 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -695,7 +691,6 @@ inline BOOL IsStockWindows10TaskbarAvailable()
|
|||||||
return global_rovi.dwBuildNumber < 26002;
|
return global_rovi.dwBuildNumber < 26002;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if WITH_ALT_TASKBAR_IMPL
|
|
||||||
inline const WCHAR* PickTaskbarDll()
|
inline const WCHAR* PickTaskbarDll()
|
||||||
{
|
{
|
||||||
DWORD b = global_rovi.dwBuildNumber;
|
DWORD b = global_rovi.dwBuildNumber;
|
||||||
@ -737,12 +732,6 @@ inline BOOL DoesTaskbarDllExist()
|
|||||||
wcscat_s(szPath, MAX_PATH, pszTaskbarDll);
|
wcscat_s(szPath, MAX_PATH, pszTaskbarDll);
|
||||||
return FileExistsW(szPath);
|
return FileExistsW(szPath);
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
inline BOOL DoesTaskbarDllExist()
|
|
||||||
{
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
inline void AdjustTaskbarStyleValue(DWORD* pdwValue)
|
inline void AdjustTaskbarStyleValue(DWORD* pdwValue)
|
||||||
{
|
{
|
||||||
|
@ -457,13 +457,11 @@ BOOL DownloadResource(BOOL bInstall, LPCWSTR pwszURL, DWORD dwSize, LPCSTR chash
|
|||||||
|
|
||||||
void ProcessTaskbarDlls(BOOL* bInOutOk, BOOL bInstall, BOOL bExtractMode, HINSTANCE hInstance, WCHAR wszPath[260])
|
void ProcessTaskbarDlls(BOOL* bInOutOk, BOOL bInstall, BOOL bExtractMode, HINSTANCE hInstance, WCHAR wszPath[260])
|
||||||
{
|
{
|
||||||
#if WITH_ALT_TASKBAR_IMPL
|
|
||||||
LPCWSTR pwszTaskbarDllName = bExtractMode ? NULL : PickTaskbarDll();
|
LPCWSTR pwszTaskbarDllName = bExtractMode ? NULL : PickTaskbarDll();
|
||||||
if (*bInOutOk) *bInOutOk = InstallResource(bInstall && (bExtractMode || pwszTaskbarDllName && !wcscmp(pwszTaskbarDllName, L"ep_taskbar.2.dll")), hInstance, IDR_EP_TASKBAR_2, wszPath, L"ep_taskbar.2.dll");
|
if (*bInOutOk) *bInOutOk = InstallResource(bInstall && (bExtractMode || pwszTaskbarDllName && !wcscmp(pwszTaskbarDllName, L"ep_taskbar.2.dll")), hInstance, IDR_EP_TASKBAR_2, wszPath, L"ep_taskbar.2.dll");
|
||||||
if (*bInOutOk) *bInOutOk = InstallResource(bInstall && (bExtractMode || pwszTaskbarDllName && !wcscmp(pwszTaskbarDllName, L"ep_taskbar.3.dll")), hInstance, IDR_EP_TASKBAR_3, wszPath, L"ep_taskbar.3.dll");
|
if (*bInOutOk) *bInOutOk = InstallResource(bInstall && (bExtractMode || pwszTaskbarDllName && !wcscmp(pwszTaskbarDllName, L"ep_taskbar.3.dll")), hInstance, IDR_EP_TASKBAR_3, wszPath, L"ep_taskbar.3.dll");
|
||||||
if (*bInOutOk) *bInOutOk = InstallResource(bInstall && (bExtractMode || pwszTaskbarDllName && !wcscmp(pwszTaskbarDllName, L"ep_taskbar.4.dll")), hInstance, IDR_EP_TASKBAR_4, wszPath, L"ep_taskbar.4.dll");
|
if (*bInOutOk) *bInOutOk = InstallResource(bInstall && (bExtractMode || pwszTaskbarDllName && !wcscmp(pwszTaskbarDllName, L"ep_taskbar.4.dll")), hInstance, IDR_EP_TASKBAR_4, wszPath, L"ep_taskbar.4.dll");
|
||||||
if (*bInOutOk) *bInOutOk = InstallResource(bInstall && (bExtractMode || pwszTaskbarDllName && !wcscmp(pwszTaskbarDllName, L"ep_taskbar.5.dll")), hInstance, IDR_EP_TASKBAR_5, wszPath, L"ep_taskbar.5.dll");
|
if (*bInOutOk) *bInOutOk = InstallResource(bInstall && (bExtractMode || pwszTaskbarDllName && !wcscmp(pwszTaskbarDllName, L"ep_taskbar.5.dll")), hInstance, IDR_EP_TASKBAR_5, wszPath, L"ep_taskbar.5.dll");
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int WINAPI wWinMain(
|
int WINAPI wWinMain(
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
<ProjectGuid>{2fd40b09-f224-4e9a-b2fe-a22b50b2debf}</ProjectGuid>
|
<ProjectGuid>{2fd40b09-f224-4e9a-b2fe-a22b50b2debf}</ProjectGuid>
|
||||||
<RootNamespace>epsetup</RootNamespace>
|
<RootNamespace>epsetup</RootNamespace>
|
||||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||||
<WithAltTaskbarImpl>0</WithAltTaskbarImpl>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
@ -87,14 +86,6 @@
|
|||||||
<LinkIncremental>false</LinkIncremental>
|
<LinkIncremental>false</LinkIncremental>
|
||||||
<OutDir>$(SolutionDir)\build\$(Configuration)\</OutDir>
|
<OutDir>$(SolutionDir)\build\$(Configuration)\</OutDir>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(WithAltTaskbarImpl)'=='1'">
|
|
||||||
<ClCompile>
|
|
||||||
<PreprocessorDefinitions>WITH_ALT_TASKBAR_IMPL=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
</ClCompile>
|
|
||||||
<ResourceCompile>
|
|
||||||
<PreprocessorDefinitions>WITH_ALT_TASKBAR_IMPL=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
</ResourceCompile>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
@ -106,9 +106,6 @@ IDR_EP_STARTMENU RCDATA "..\\build\\Release\\ep_startmenu.dll
|
|||||||
|
|
||||||
IDR_EP_GUI RCDATA "..\\build\\Release\\ep_gui.dll"
|
IDR_EP_GUI RCDATA "..\\build\\Release\\ep_gui.dll"
|
||||||
|
|
||||||
#ifdef WITH_ALT_TASKBAR_IMPL
|
|
||||||
#if WITH_ALT_TASKBAR_IMPL
|
|
||||||
|
|
||||||
#if EP_TASKBAR_2_EXISTS
|
#if EP_TASKBAR_2_EXISTS
|
||||||
IDR_EP_TASKBAR_2 RCDATA "..\\build\\Release\\ep_taskbar.2.dll"
|
IDR_EP_TASKBAR_2 RCDATA "..\\build\\Release\\ep_taskbar.2.dll"
|
||||||
#endif
|
#endif
|
||||||
@ -125,9 +122,6 @@ IDR_EP_TASKBAR_4 RCDATA "..\\build\\Release\\ep_taskbar.4.dll
|
|||||||
IDR_EP_TASKBAR_5 RCDATA "..\\build\\Release\\ep_taskbar.5.dll"
|
IDR_EP_TASKBAR_5 RCDATA "..\\build\\Release\\ep_taskbar.5.dll"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // English (United States) resources
|
#endif // English (United States) resources
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user