Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
[modify] 修改了代理修复
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenway committed Dec 7, 2023
1 parent 69b50b7 commit c259a63
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 1 deletion.
9 changes: 8 additions & 1 deletion SduNetCheckTool.Core/Repairs/ProxyRepair.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Diagnostics;
using System.Text;
using System.Threading;
using System.Runtime.InteropServices;

namespace SduNetCheckTool.Core.Repairs
{
Expand Down Expand Up @@ -35,7 +36,13 @@ private enum RET_ERRORS : int

public static void ResetIEProxy()
{
ExecuteSysproxy("set 1 - - -");
// ExecuteSysproxy("set 1 - - -");
// 调用外部dll
[DllImport("sysproxy64.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
static extern int ResetProxy();

ResetProxy();

}

private static void ExecuteSysproxy(string arguments)
Expand Down
18 changes: 18 additions & 0 deletions SduNetCheckTool.Core/SduNetCheckTool.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,24 @@
<WarningLevel>4</WarningLevel>
<LangVersion>preview</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>preview</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>preview</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
24 changes: 24 additions & 0 deletions SduNetCheckTool.GUI/SduNetCheckTool.GUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,27 @@
</PropertyGroup>
<PropertyGroup>
<SignManifests>false</SignManifests>
<PublishSingleFile>true</PublishSingleFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down Expand Up @@ -197,6 +218,9 @@
<EmbeddedResource Include="sysproxy.exe">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="sysproxy64.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Binary file added SduNetCheckTool.GUI/sysproxy64.dll
Binary file not shown.
10 changes: 10 additions & 0 deletions SduNetCheckTool.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,27 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3A776D32-9429-4C53-989C-F6038DBF4D46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3A776D32-9429-4C53-989C-F6038DBF4D46}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3A776D32-9429-4C53-989C-F6038DBF4D46}.Debug|x64.ActiveCfg = Debug|x64
{3A776D32-9429-4C53-989C-F6038DBF4D46}.Debug|x64.Build.0 = Debug|x64
{3A776D32-9429-4C53-989C-F6038DBF4D46}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3A776D32-9429-4C53-989C-F6038DBF4D46}.Release|Any CPU.Build.0 = Release|Any CPU
{3A776D32-9429-4C53-989C-F6038DBF4D46}.Release|x64.ActiveCfg = Release|x64
{3A776D32-9429-4C53-989C-F6038DBF4D46}.Release|x64.Build.0 = Release|x64
{59475327-FB1C-4CE6-9813-3B19796DBCA0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{59475327-FB1C-4CE6-9813-3B19796DBCA0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{59475327-FB1C-4CE6-9813-3B19796DBCA0}.Debug|x64.ActiveCfg = Debug|x64
{59475327-FB1C-4CE6-9813-3B19796DBCA0}.Debug|x64.Build.0 = Debug|x64
{59475327-FB1C-4CE6-9813-3B19796DBCA0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{59475327-FB1C-4CE6-9813-3B19796DBCA0}.Release|Any CPU.Build.0 = Release|Any CPU
{59475327-FB1C-4CE6-9813-3B19796DBCA0}.Release|x64.ActiveCfg = Release|x64
{59475327-FB1C-4CE6-9813-3B19796DBCA0}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit c259a63

Please sign in to comment.