Skip to content

Commit 16ec3b4

Browse files
committed
Возвращаем запрос прав админа
(что-то кристаликс запретил какой-то доступ к их процессу)
1 parent cd54085 commit 16ec3b4

File tree

2 files changed

+82
-3
lines changed

2 files changed

+82
-3
lines changed

BypassReplacer/BypassReplacer.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@
4343
<PlatformTarget>x64</PlatformTarget>
4444
<OutputPath>bin\x64\Release\</OutputPath>
4545
</PropertyGroup>
46-
<PropertyGroup />
4746
<PropertyGroup>
48-
<StartupObject />
49-
</PropertyGroup>
47+
<ApplicationManifest>app.manifest</ApplicationManifest>
48+
</PropertyGroup>
5049
<ItemGroup>
5150
<Reference Include="System" />
5251
<Reference Include="System.Data" />
@@ -105,6 +104,7 @@
105104
<Generator>ResXFileCodeGenerator</Generator>
106105
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
107106
</EmbeddedResource>
107+
<None Include="app.manifest" />
108108
<None Include="Properties\Settings.settings">
109109
<Generator>SettingsSingleFileGenerator</Generator>
110110
<LastGenOutput>Settings.Designer.cs</LastGenOutput>

BypassReplacer/app.manifest

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
3+
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
4+
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
5+
<security>
6+
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
7+
<!-- Параметры манифеста UAC
8+
Если вы хотите изменить уровень контроля учетных записей Windows, замените узел
9+
requestedExecutionLevel на один из следующих.
10+
11+
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
12+
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
13+
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
14+
15+
При указании элемента requestedExecutionLevel будет отключена виртуализация файлов и реестра.
16+
Удалите этот элемент, если виртуализация требуется приложению для обратной
17+
совместимости.
18+
-->
19+
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
20+
</requestedPrivileges>
21+
</security>
22+
</trustInfo>
23+
24+
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
25+
<application>
26+
<!-- Список версий Windows, на которых это приложение было протестировано
27+
и будет работать. Раскомментируйте соответствующие элементы, чтобы ОС Windows
28+
автоматически выбрала наиболее совместимое окружение. -->
29+
30+
<!-- Windows Vista -->
31+
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
32+
33+
<!-- Windows 7 -->
34+
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
35+
36+
<!-- Windows 8 -->
37+
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
38+
39+
<!-- Windows 8.1 -->
40+
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
41+
42+
<!-- Windows 10 -->
43+
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
44+
45+
</application>
46+
</compatibility>
47+
48+
<!-- Указывает, что приложение поддерживает определение DPI и не будет автоматически масштабироваться Windows при более высоких
49+
значениях DPI. Приложения Windows Presentation Foundation (WPF) по умолчанию поддерживают определение DPI, им не нужно
50+
специально включать параметр для этого. Для приложений Windows Forms на платформе .NET Framework 4.6, для которых задан этот параметр, необходимо
51+
также задать для "EnableWindowsFormsHighDpiAutoResizing" значение "true" в файле app.config.
52+
53+
При этом приложение начинает учитывать длинные пути. Дополнительные сведения см. на странице https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation.-->
54+
<!--
55+
<application xmlns="urn:schemas-microsoft-com:asm.v3">
56+
<windowsSettings>
57+
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
58+
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
59+
</windowsSettings>
60+
</application>
61+
-->
62+
63+
<!-- Включите темы для общих элементов управления и диалоговых окон Windows (Windows XP и более поздние версии) -->
64+
<!--
65+
<dependency>
66+
<dependentAssembly>
67+
<assemblyIdentity
68+
type="win32"
69+
name="Microsoft.Windows.Common-Controls"
70+
version="6.0.0.0"
71+
processorArchitecture="*"
72+
publicKeyToken="6595b64144ccf1df"
73+
language="*"
74+
/>
75+
</dependentAssembly>
76+
</dependency>
77+
-->
78+
79+
</assembly>

0 commit comments

Comments
 (0)