Skip to content
This repository was archived by the owner on Jul 13, 2024. It is now read-only.

Commit 50d1902

Browse files
authored
Add files via upload
1 parent 8a03b44 commit 50d1902

15 files changed

+2847
-0
lines changed

DriverModify.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.5.33424.131
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DriverModify", "DriverModify\DriverModify.csproj", "{C57DAE00-4140-41CA-972D-2B173F79F900}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{C57DAE00-4140-41CA-972D-2B173F79F900}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{C57DAE00-4140-41CA-972D-2B173F79F900}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{C57DAE00-4140-41CA-972D-2B173F79F900}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{C57DAE00-4140-41CA-972D-2B173F79F900}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {FD55FF77-D4EA-4BA6-A899-0A0539ED4FC9}
24+
EndGlobalSection
25+
EndGlobal

DriverModify/App.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
5+
</startup>
6+
</configuration>

DriverModify/DriverModify.csproj

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{C57DAE00-4140-41CA-972D-2B173F79F900}</ProjectGuid>
8+
<OutputType>WinExe</OutputType>
9+
<RootNamespace>DriverModify</RootNamespace>
10+
<AssemblyName>DriverModify</AssemblyName>
11+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
12+
<FileAlignment>512</FileAlignment>
13+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14+
<Deterministic>true</Deterministic>
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<PlatformTarget>AnyCPU</PlatformTarget>
18+
<DebugSymbols>true</DebugSymbols>
19+
<DebugType>full</DebugType>
20+
<Optimize>false</Optimize>
21+
<OutputPath>bin\Debug\</OutputPath>
22+
<DefineConstants>DEBUG;TRACE</DefineConstants>
23+
<ErrorReport>prompt</ErrorReport>
24+
<WarningLevel>4</WarningLevel>
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27+
<PlatformTarget>AnyCPU</PlatformTarget>
28+
<DebugType>pdbonly</DebugType>
29+
<Optimize>true</Optimize>
30+
<OutputPath>Release\</OutputPath>
31+
<DefineConstants>
32+
</DefineConstants>
33+
<ErrorReport>prompt</ErrorReport>
34+
<WarningLevel>0</WarningLevel>
35+
</PropertyGroup>
36+
<PropertyGroup>
37+
<ApplicationIcon>nvidia.ico</ApplicationIcon>
38+
</PropertyGroup>
39+
<PropertyGroup>
40+
<StartupObject />
41+
</PropertyGroup>
42+
<ItemGroup>
43+
<Reference Include="System" />
44+
<Reference Include="System.Core" />
45+
<Reference Include="System.Management" />
46+
<Reference Include="System.Xml.Linq" />
47+
<Reference Include="System.Data.DataSetExtensions" />
48+
<Reference Include="System.Data" />
49+
<Reference Include="System.Deployment" />
50+
<Reference Include="System.Drawing" />
51+
<Reference Include="System.Net.Http" />
52+
<Reference Include="System.Windows.Forms" />
53+
<Reference Include="System.Xml" />
54+
</ItemGroup>
55+
<ItemGroup>
56+
<Compile Include="IniFile.cs" />
57+
<Compile Include="Window.cs">
58+
<SubType>Form</SubType>
59+
</Compile>
60+
<Compile Include="Window.Designer.cs">
61+
<DependentUpon>Window.cs</DependentUpon>
62+
</Compile>
63+
<Compile Include="Program.cs" />
64+
<Compile Include="Properties\AssemblyInfo.cs" />
65+
<EmbeddedResource Include="Window.resx">
66+
<DependentUpon>Window.cs</DependentUpon>
67+
</EmbeddedResource>
68+
<EmbeddedResource Include="Properties\Resources.resx">
69+
<Generator>ResXFileCodeGenerator</Generator>
70+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
71+
<SubType>Designer</SubType>
72+
</EmbeddedResource>
73+
<Compile Include="Properties\Resources.Designer.cs">
74+
<AutoGen>True</AutoGen>
75+
<DependentUpon>Resources.resx</DependentUpon>
76+
</Compile>
77+
<None Include="Properties\Settings.settings">
78+
<Generator>SettingsSingleFileGenerator</Generator>
79+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
80+
</None>
81+
<Compile Include="Properties\Settings.Designer.cs">
82+
<AutoGen>True</AutoGen>
83+
<DependentUpon>Settings.settings</DependentUpon>
84+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
85+
</Compile>
86+
</ItemGroup>
87+
<ItemGroup>
88+
<None Include="App.config" />
89+
</ItemGroup>
90+
<ItemGroup>
91+
<Content Include="nvidia.ico" />
92+
</ItemGroup>
93+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
94+
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<ProjectView>ProjectFiles</ProjectView>
5+
</PropertyGroup>
6+
</Project>

DriverModify/IniFile.cs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System;
2+
using System.Runtime.InteropServices;
3+
using System.Text;
4+
5+
internal class IniFile
6+
{
7+
private readonly string path;
8+
public IniFile(string path = null)
9+
{
10+
this.path = new System.IO.FileInfo(path).FullName.ToString();
11+
}
12+
13+
[DllImport("kernel32", CharSet = CharSet.Auto)]
14+
private static extern int GetPrivateProfileSection(string section, IntPtr pointer, int size, string path);
15+
16+
public string[] GetAllDataSection(string section, int size = 255)
17+
{
18+
System.IntPtr pointer = Marshal.AllocHGlobal(4096 * sizeof(char));
19+
string temp = string.Empty;
20+
21+
int count = GetPrivateProfileSection(section, pointer, size * sizeof(char), path) - 1;
22+
if (count > 0) temp = Marshal.PtrToStringUni(pointer, count);
23+
Marshal.FreeHGlobal(pointer);
24+
25+
return temp.Split('\0');
26+
}
27+
}

DriverModify/Program.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
using System.Windows.Forms;
6+
7+
namespace DriverModify
8+
{
9+
internal static class Program
10+
{
11+
[STAThread]
12+
static void Main()
13+
{
14+
Application.EnableVisualStyles();
15+
Application.SetCompatibleTextRenderingDefault(false);
16+
Application.Run(new Window());
17+
}
18+
}
19+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// Общие сведения об этой сборке предоставляются следующим набором
6+
// набора атрибутов. Измените значения этих атрибутов для изменения сведений,
7+
// связанных со сборкой.
8+
[assembly: AssemblyTitle("DriverModify")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("DriverModify")]
13+
[assembly: AssemblyCopyright("Copyright © 2023")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
18+
// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
19+
// COM, следует установить атрибут ComVisible в TRUE для этого типа.
20+
[assembly: ComVisible(false)]
21+
22+
// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
23+
[assembly: Guid("c57dae00-4140-41ca-972d-2b173f79f900")]
24+
25+
// Сведения о версии сборки состоят из указанных ниже четырех значений:
26+
//
27+
// Основной номер версии
28+
// Дополнительный номер версии
29+
// Номер сборки
30+
// Редакция
31+
//
32+
// Можно задать все значения или принять номера сборки и редакции по умолчанию
33+
// используя "*", как показано ниже:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]

DriverModify/Properties/Resources.Designer.cs

Lines changed: 71 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)