mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-15 16:10:41 +00:00
Misc
This commit is contained in:
@@ -107,10 +107,12 @@ internal static partial class NativeMethods {
|
|||||||
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
internal struct FlashWindowInfo {
|
internal struct FlashWindowInfo {
|
||||||
|
#pragma warning disable ReSharper.Reordering // TODO: This silly pragma doesn't do anything, but it stops Rider from reordering, we may be able to get rid of it later
|
||||||
public uint StructSize;
|
public uint StructSize;
|
||||||
public nint WindowHandle;
|
public nint WindowHandle;
|
||||||
public EFlashFlags Flags;
|
public EFlashFlags Flags;
|
||||||
public uint Count;
|
public uint Count;
|
||||||
public uint TimeoutBetweenFlashes;
|
public uint TimeoutBetweenFlashes;
|
||||||
|
#pragma warning restore ReSharper.Reordering // TODO: This silly pragma doesn't do anything, but it stops Rider from reordering, we may be able to get rid of it later
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -236,6 +236,7 @@ internal static class OS {
|
|||||||
}
|
}
|
||||||
|
|
||||||
using Process currentProcess = Process.GetCurrentProcess();
|
using Process currentProcess = Process.GetCurrentProcess();
|
||||||
|
|
||||||
nint handle = currentProcess.MainWindowHandle;
|
nint handle = currentProcess.MainWindowHandle;
|
||||||
|
|
||||||
if (handle == nint.Zero) {
|
if (handle == nint.Zero) {
|
||||||
|
|||||||
Reference in New Issue
Block a user