Skip to content

Commit

Permalink
Split twinui.pcshell.dll patches into their own file
Browse files Browse the repository at this point in the history
  • Loading branch information
Amrsatrio committed Jul 30, 2024
1 parent ea5881f commit 23b44a2
Show file tree
Hide file tree
Showing 7 changed files with 2,645 additions and 2,721 deletions.
8 changes: 8 additions & 0 deletions ExplorerPatcher/ArchiveMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
#include <Windows.h>
#include <Shlobj_core.h>

#ifdef __cplusplus
extern "C" {
#endif

#define OPEN_NAME L"&Open archive"
#define EXTRACT_NAME L"&Extract to \"%s\\\""
#define OPEN_CMD L"\"C:\\Program Files\\7-Zip\\7zFM.exe\" %s"
Expand Down Expand Up @@ -51,4 +55,8 @@ LRESULT CALLBACK ArchiveMenuWndProc(
void(*ImmersiveContextMenuHelper_RemoveOwnerDrawFromMenuFunc)(HMENU hMenu, HWND hWnd)
);

#ifdef __cplusplus
}
#endif

#endif
36 changes: 0 additions & 36 deletions ExplorerPatcher/StartMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,42 +179,6 @@ interface IImmersiveLauncher10RS
CONST_VTBL struct IImmersiveLauncher10RSVtbl* lpVtbl;
};

DEFINE_GUID(IID_ILauncherTipContextMenu,
0xb8c1db5f,
0xcbb3, 0x48bc, 0xaf, 0xd9,
0xce, 0x6b, 0x88, 0x0c, 0x79, 0xed
);

typedef interface ILauncherTipContextMenu ILauncherTipContextMenu;

typedef struct ILauncherTipContextMenuVtbl
{
BEGIN_INTERFACE

HRESULT(STDMETHODCALLTYPE* QueryInterface)(
ILauncherTipContextMenu* This,
/* [in] */ REFIID riid,
/* [annotation][iid_is][out] */
_COM_Outptr_ void** ppvObject);

ULONG(STDMETHODCALLTYPE* AddRef)(
ILauncherTipContextMenu* This);

ULONG(STDMETHODCALLTYPE* Release)(
ILauncherTipContextMenu* This);

HRESULT(STDMETHODCALLTYPE* ShowLauncherTipContextMenu)(
ILauncherTipContextMenu* This,
/* [in] */ POINT* pt);

END_INTERFACE
} ILauncherTipContextMenuVtbl;

interface ILauncherTipContextMenu
{
CONST_VTBL struct ILauncherTipContextMenuVtbl* lpVtbl;
};

void OpenStartOnMonitor(HMONITOR monitor);

// Slightly tweaked version of function available in Open Shell
Expand Down
Loading

0 comments on commit 23b44a2

Please sign in to comment.