Steam 快速登录

This commit is contained in:
Aigio Liu
2021-05-05 18:35:23 +08:00
parent 276aa4fe15
commit d2918a9221
39 changed files with 783 additions and 177 deletions
@@ -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>-->
@@ -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 // 验证平台兼容性