Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

Commit 2c7857d

Browse files
committed
Added support for taskbar grouping
All Manager and 86Box windows should now be groupped in the taskbar into a single button (on Windows 7 and later).
1 parent ba362c6 commit 2c7857d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

86BoxManager/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,16 @@ public struct COPYDATASTRUCT
4242
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
4343
public static extern int SendMessage(IntPtr hwnd, int wMsg, IntPtr wParam, ref COPYDATASTRUCT lParam);
4444

45+
[DllImport("shell32.dll", SetLastError = true)]
46+
static extern void SetCurrentProcessExplicitAppUserModelID([MarshalAs(UnmanagedType.LPWStr)] string AppID);
47+
48+
private static readonly string AppID = "86Box.86Box"; //For grouping windows together in Win7+ taskbar
4549
private static Mutex mutex = null;
4650

4751
[STAThread]
4852
static void Main()
4953
{
54+
SetCurrentProcessExplicitAppUserModelID(AppID);
5055
const string name = "86Box Manager";
5156

5257
//Use a mutex to check if this is the first instance of Manager

0 commit comments

Comments
 (0)