Browse Source

Provides a simple mechanism for chainloading a custom library when the shell interface is created

pull/492/head 22000.318.38.6_93a7f5c
Valentin Radu 4 years ago
parent
commit
93a7f5c0d7
  1. 1
      CHANGELOG.md
  2. 29
      ExplorerPatcher/dllmain.c
  3. 6
      version.h

1
CHANGELOG.md

@ -19,6 +19,7 @@ Tested on build 22000.318 and 22000.346 (currently in Windows Insider beta and r
* Implemented option to toggle taskbar auto-hide when double clicking the main taskbar (#389) (.3) * Implemented option to toggle taskbar auto-hide when double clicking the main taskbar (#389) (.3)
* Running `ep-setup.exe` again while EP is already installed will now update the program to the latest version. To uninstall, as the previous behavior did, run `ep_setup.exe /uninstall` (.4) * Running `ep-setup.exe` again while EP is already installed will now update the program to the latest version. To uninstall, as the previous behavior did, run `ep_setup.exe /uninstall` (.4)
* Implemented absolute height and width parameters for the Windows 10 switcher. These are especially useful for ultra wide monitors, in a scenario similar to the one described in [this post](https://github.com/valinet/ExplorerPatcher/discussions/110#discussioncomment-1673007) - to configure, set `MaxWidthAbs` and/or `MaxHeightAbs` DWORD values in `HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ExplorerPatcher\sws` (#110) (.5) * Implemented absolute height and width parameters for the Windows 10 switcher. These are especially useful for ultra wide monitors, in a scenario similar to the one described in [this post](https://github.com/valinet/ExplorerPatcher/discussions/110#discussioncomment-1673007) - to configure, set `MaxWidthAbs` and/or `MaxHeightAbs` DWORD values in `HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ExplorerPatcher\sws` (#110) (.5)
* Provides a simple mechanism for chainloading a custom library when the shell interface is created, from which you can execute your custom code (subject to change, see [this](https://github.com/valinet/ExplorerPatcher/discussions/408#discussioncomment-1674348) for more details) (#408) (.6)
#### Feature enhancements #### Feature enhancements

29
ExplorerPatcher/dllmain.c

@ -5594,6 +5594,35 @@ DWORD Inject(BOOL bIsExplorer)
CreateThread(NULL, 0, CheckForUpdatesThread, 0, 0, NULL); CreateThread(NULL, 0, CheckForUpdatesThread, 0, 0, NULL);
WCHAR wszExtraLibPath[MAX_PATH];
if (GetWindowsDirectoryW(wszExtraLibPath, MAX_PATH))
{
wcscat_s(wszExtraLibPath, MAX_PATH, L"\\ep_extra.dll");
if (FileExistsW(wszExtraLibPath))
{
HMODULE hExtra = LoadLibraryW(wszExtraLibPath);
if (hExtra)
{
printf("[Extra] Found library: %p.\n", hExtra);
FARPROC ep_extra_entrypoint = GetProcAddress(hExtra, "ep_extra_EntryPoint");
if (ep_extra_entrypoint)
{
printf("[Extra] Running entry point...\n");
ep_extra_entrypoint();
printf("[Extra] Finished running entry point.\n");
}
}
else
{
printf("[Extra] LoadLibraryW failed with 0x%x.", GetLastError());
}
}
}
/*if (bHookStartMenu) /*if (bHookStartMenu)
{ {
HookStartMenuParams* params2 = calloc(1, sizeof(HookStartMenuParams)); HookStartMenuParams* params2 = calloc(1, sizeof(HookStartMenuParams));

6
version.h

@ -1,7 +1,7 @@
#define VER_MAJOR 22000 #define VER_MAJOR 22000
#define VER_MINOR 318 #define VER_MINOR 318
#define VER_BUILD_HI 38 #define VER_BUILD_HI 38
#define VER_BUILD_LO 5 #define VER_BUILD_LO 6
#define VER_FLAGS VS_FF_PRERELEASE #define VER_FLAGS VS_FF_PRERELEASE
@ -12,5 +12,5 @@
#define VER_STR(arg) #arg #define VER_STR(arg) #arg
// The String form of the version numbers // The String form of the version numbers
#define VER_FILE_STRING VALUE "FileVersion", "22000.318.38.5" #define VER_FILE_STRING VALUE "FileVersion", "22000.318.38.6"
#define VER_PRODUCT_STRING VALUE "ProductVersion", "22000.318.38.5" #define VER_PRODUCT_STRING VALUE "ProductVersion", "22000.318.38.6"

Loading…
Cancel
Save