mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-06-04 11:05:50 +08:00
@@ -90,6 +90,11 @@ public class SystemControl
|
||||
return hWnd == TaskContext.Instance().GameHandle;
|
||||
}
|
||||
|
||||
public static bool IsGenshinImpactMinimized()
|
||||
{
|
||||
return User32.IsIconic(TaskContext.Instance().GameHandle);
|
||||
}
|
||||
|
||||
public static nint GetForegroundWindowHandle()
|
||||
{
|
||||
return (nint)User32.GetForegroundWindow();
|
||||
|
||||
Reference in New Issue
Block a user