using System;
using System.Drawing;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
// Get all window handles
foreach (IntPtr window in BFS.Window.GetAllWindowHandles())
{
// Check if the window class is CabinetWClass (a File Explorer window)
if (BFS.Window.GetClass(window).Contains("CabinetWClass"))
{
// Check if the window is minimized and restore it, otherwise just focus it
if (BFS.Window.IsMinimized(window))
BFS.Window.Restore(window);
else
BFS.Window.Focus(window);
}
}
}
}