diff --git a/src/ST.Client.Desktop.Windows/ServiceCollectionExtensions.cs b/src/ST.Client.Desktop.Windows/ServiceCollectionExtensions.cs
index 99a5b79a2..2cbec4c0c 100644
--- a/src/ST.Client.Desktop.Windows/ServiceCollectionExtensions.cs
+++ b/src/ST.Client.Desktop.Windows/ServiceCollectionExtensions.cs
@@ -2,7 +2,6 @@ using System;
using System.Application.Services;
using System.Application.Services.Implementation;
using System.Net.Http;
-using System.Runtime.InteropServices;
using System.Security.Cryptography;
// ReSharper disable once CheckNamespace
diff --git a/src/ST.Client.Desktop/Services/ISystemWindowApiService.cs b/src/ST.Client.Desktop/Services/ISystemWindowApiService.cs
index 0d29619f4..05680dec8 100644
--- a/src/ST.Client.Desktop/Services/ISystemWindowApiService.cs
+++ b/src/ST.Client.Desktop/Services/ISystemWindowApiService.cs
@@ -3,58 +3,65 @@ using System.Runtime.Versioning;
namespace System.Application.Services
{
- [SupportedOSPlatform("Windows")]
public interface ISystemWindowApiService
{
///
/// 拖拽指针获取目标窗口
///
/// 目标窗口回调
+ [SupportedOSPlatform("Windows")]
void GetMoveMouseDownWindow(Action action);
///
/// 将传入窗口设置为无边框窗口化
///
///
+ [SupportedOSPlatform("Windows")]
void BorderlessWindow(HandleWindow window);
///
/// 最大化窗口
///
///
+ [SupportedOSPlatform("Windows")]
void MaximizeWindow(HandleWindow window);
///
/// 默认窗口
///
///
+ [SupportedOSPlatform("Windows")]
void NormalWindow(HandleWindow window);
///
/// 显示窗口
///
///
+ [SupportedOSPlatform("Windows")]
void ShowWindow(HandleWindow window);
///
/// 隐藏窗口
///
///
+ [SupportedOSPlatform("Windows")]
void HideWindow(HandleWindow window);
///
/// 窗口移至壁纸层
///
///
+ [SupportedOSPlatform("Windows")]
void ToWallerpaperWindow(HandleWindow window);
///
/// 刷新壁纸
///
///
+ [SupportedOSPlatform("Windows")]
void ResetWallerpaper();
-
+ [SupportedOSPlatform("Windows")]
void SetActiveWindow(HandleWindow window);
}
}
\ No newline at end of file