Skip to content

Commit 0cd75f4

Browse files
authored
use app manifest (#882)
1 parent 2baf519 commit 0cd75f4

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

cppwinrt/app.manifest

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
3+
<application xmlns="urn:schemas-microsoft-com:asm.v3">
4+
<windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
5+
<ws2:longPathAware>true</ws2:longPathAware>
6+
</windowsSettings>
7+
</application>
8+
</assembly>

cppwinrt/cppwinrt.vcxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@
111111
<ItemGroup>
112112
<None Include="packages.config" />
113113
</ItemGroup>
114+
<ItemGroup>
115+
<Manifest Include="app.manifest" />
116+
</ItemGroup>
114117
<PropertyGroup Label="Globals">
115118
<VCProjectVersion>15.0</VCProjectVersion>
116119
<ProjectGuid>{D613FB39-5035-4043-91E2-BAB323908AF4}</ProjectGuid>
@@ -265,6 +268,9 @@
265268
<Command>
266269
</Command>
267270
</PostBuildEvent>
271+
<Manifest>
272+
<AdditionalManifestFiles>app.manifest;%(AdditionalManifestFiles)</AdditionalManifestFiles>
273+
</Manifest>
268274
</ItemDefinitionGroup>
269275
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
270276
<ClCompile>

cppwinrt/cppwinrt.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,4 +175,7 @@
175175
<ItemGroup>
176176
<None Include="packages.config" />
177177
</ItemGroup>
178+
<ItemGroup>
179+
<Manifest Include="app.manifest" />
180+
</ItemGroup>
178181
</Project>

cppwinrt/main.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include "component_writers.h"
99
#include "file_writers.h"
1010
#include "type_writers.h"
11-
#include <winternl.h>
1211

1312
namespace cppwinrt
1413
{
@@ -375,7 +374,5 @@ Where <spec> is one or more of:
375374

376375
int main(int const argc, char** argv)
377376
{
378-
// Dynamically enable long path support
379-
((unsigned char*)(NtCurrentTeb()->ProcessEnvironmentBlock))[3] |= 0x80;
380377
return cppwinrt::run(argc, argv);
381378
}

0 commit comments

Comments
 (0)