mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-27 21:43:14 +08:00
Steam 快速登录
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<!--<TargetFramework>net5.0-windows10.0.19041.0</TargetFramework>-->
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<!--<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion>-->
|
||||
<RootNamespace>System.Application</RootNamespace>
|
||||
<!--<UseWindowsForms>false</UseWindowsForms>-->
|
||||
|
||||
+11
@@ -173,6 +173,17 @@ namespace System.Application.Services.Implementation
|
||||
static readonly Lazy<(byte[] key, byte[] iv)> mMachineSecretKey = IDesktopPlatformService.GetMachineSecretKey(GetMachineSecretKey);
|
||||
|
||||
public (byte[] key, byte[] iv) MachineSecretKey => mMachineSecretKey.Value;
|
||||
|
||||
public Process StartAsInvoker(string fileName)
|
||||
{
|
||||
return Process.Start($"/trustlevel:0x20000 \"{fileName}\"");
|
||||
}
|
||||
|
||||
public Process? StartAsInvoker(ProcessStartInfo startInfo)
|
||||
{
|
||||
startInfo.FileName = $"/trustlevel:0x20000 \"{startInfo.FileName}\"";
|
||||
return Process.Start(startInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CA1416 // 验证平台兼容性
|
||||
Reference in New Issue
Block a user