Skip to content

Commit

Permalink
Aero Tray 1.0.1: Fix injection stuff (#435)
Browse files Browse the repository at this point in the history
* Clarify injection stuff
  • Loading branch information
aubymori authored Dec 18, 2023
1 parent 4978c5b commit 9a60743
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions mods/aero-tray.wh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// @id aero-tray
// @name Aero Tray
// @description Restores Windows 7/8 tray overflow
// @version 1.0.0
// @version 1.0.1
// @author aubymori
// @github https://github.com/aubymori
// @include explorer.exe
Expand All @@ -16,6 +16,11 @@
This mod restores the tray overflow from Windows 7 and 8, including the "Customize..." link,
drawing tray icons with the system theme, and the general appearance.
# IMPORTANT: READ!
Windhawk needs to hook into `winlogon.exe` to successfully capture Explorer starting. Please
navigate to Windhawk's Settings, Advanced settings, More advanced settings, and make sure that
`winlogon.exe` is in the Process inclusion list.
## Notice
It is highly recommended you restart Explorer after making changes to the settings.
Expand Down Expand Up @@ -59,7 +64,6 @@ It is highly recommended you restart Explorer after making changes to the settin
#include <uxtheme.h>
#include <windowsx.h>
#include <windhawk_utils.h>
#include <winerror.h>

const UINT LINK_AREA_HEIGHT = 43;
const UINT LINK_AREA_PADDING = 16;
Expand Down Expand Up @@ -948,10 +952,10 @@ BOOL Wh_ModInit(void)
{
LoadSettings();

WCHAR szPath[MAX_PATH];
ExpandEnvironmentStringsW(SIB_PATH, szPath, MAX_PATH);
WCHAR szSIBPath[MAX_PATH];
ExpandEnvironmentStringsW(SIB_PATH, szSIBPath, MAX_PATH);

HMODULE hSib = LoadLibraryW(szPath);
HMODULE hSib = LoadLibraryW(szSIBPath);
if (hSib)
{
PatchStartIsBack(hSib);
Expand Down

0 comments on commit 9a60743

Please sign in to comment.