mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-10 13:44:22 +00:00
Add --minimized command-line argument (#2817)
* Add experimental support for --minimized on Windows * Simplify the code
This commit is contained in:
committed by
GitHub
parent
573080e6c0
commit
d3490b4e92
@@ -32,6 +32,9 @@ internal static partial class NativeMethods {
|
||||
[SupportedOSPlatform("Windows")]
|
||||
internal const uint EnableQuickEditMode = 0x0040;
|
||||
|
||||
[SupportedOSPlatform("Windows")]
|
||||
internal const byte ShowWindowMinimize = 6;
|
||||
|
||||
[SupportedOSPlatform("Windows")]
|
||||
internal const sbyte StandardInputHandle = -10;
|
||||
|
||||
@@ -103,6 +106,17 @@ internal static partial class NativeMethods {
|
||||
internal static partial EExecutionState SetThreadExecutionState(EExecutionState executionState);
|
||||
#endif
|
||||
|
||||
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
|
||||
[SupportedOSPlatform("Windows")]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
#if NETFRAMEWORK
|
||||
[DllImport("user32.dll")]
|
||||
internal static extern bool ShowWindow(nint hWnd, int nCmdShow);
|
||||
#else
|
||||
[LibraryImport("user32.dll")]
|
||||
internal static partial bool ShowWindow(nint hWnd, int nCmdShow);
|
||||
#endif
|
||||
|
||||
[Flags]
|
||||
[SupportedOSPlatform("Windows")]
|
||||
internal enum EExecutionState : uint {
|
||||
|
||||
Reference in New Issue
Block a user