place Portable Executable (PE)-specific stuff in its own namespace

This commit is contained in:
Michael Becker 2020-01-05 19:56:17 -05:00
parent 49b8a7ddaa
commit 0bf4a47e0a
No known key found for this signature in database
GPG Key ID: 506F54899E2BFED7
9 changed files with 19 additions and 14 deletions

View File

@ -21,6 +21,8 @@ using UniversalEditor.IO;
using UniversalEditor.ObjectModels.Executable;
using UniversalEditor.ObjectModels.FileSystem;
using UniversalEditor.DataFormats.Executable.Microsoft.PortableExecutable;
#if EXECUTABLE_LOAD_RESOURCES
using UniversalEditor.DataFormats.Resource.Microsoft;
using UniversalEditor.ObjectModels.Resource;

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UniversalEditor.DataFormats.Executable.Microsoft
namespace UniversalEditor.DataFormats.Executable.Microsoft.PortableExecutable
{
/// <summary>
/// A set of bit flags indicating attributes of the file.

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UniversalEditor.DataFormats.Executable.Microsoft
namespace UniversalEditor.DataFormats.Executable.Microsoft.PortableExecutable
{
public enum PECompiler
{

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UniversalEditor.DataFormats.Executable.Microsoft
namespace UniversalEditor.DataFormats.Executable.Microsoft.PortableExecutable
{
public struct PEHeader
{

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UniversalEditor.DataFormats.Executable.Microsoft
namespace UniversalEditor.DataFormats.Executable.Microsoft.PortableExecutable
{
public enum PEMachineType : ushort
{

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UniversalEditor.DataFormats.Executable.Microsoft
namespace UniversalEditor.DataFormats.Executable.Microsoft.PortableExecutable
{
public struct PEOptionalHeader
{

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UniversalEditor.DataFormats.Executable.Microsoft
namespace UniversalEditor.DataFormats.Executable.Microsoft.PortableExecutable
{
[Flags()]
public enum PESectionCharacteristics : uint

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UniversalEditor.DataFormats.Executable.Microsoft
namespace UniversalEditor.DataFormats.Executable.Microsoft.PortableExecutable
{
public struct PESectionHeader
{

View File

@ -64,13 +64,6 @@
<Compile Include="DataFormats\Executable\ELF\ELFSpecialSectionIndex.cs" />
<Compile Include="DataFormats\Executable\Microsoft\DOSExecutableHeader.cs" />
<Compile Include="DataFormats\Executable\Microsoft\MicrosoftExecutableDataFormat.cs" />
<Compile Include="DataFormats\Executable\Microsoft\PECharacteristics.cs" />
<Compile Include="DataFormats\Executable\Microsoft\PECompiler.cs" />
<Compile Include="DataFormats\Executable\Microsoft\PEHeader.cs" />
<Compile Include="DataFormats\Executable\Microsoft\PEMachineType.cs" />
<Compile Include="DataFormats\Executable\Microsoft\PEOptionalHeader.cs" />
<Compile Include="DataFormats\Executable\Microsoft\PESectionCharacteristics.cs" />
<Compile Include="DataFormats\Executable\Microsoft\PESectionHeader.cs" />
<Compile Include="DataFormats\Executable\Microsoft\RichHeader.cs" />
<Compile Include="DataFormats\Executable\RelocatableObject\OBJDataFormat.cs" />
<Compile Include="DataFormats\Executable\RelocatableObject\OBJRecordType.cs" />
@ -102,6 +95,13 @@
<Compile Include="DataFormats\Executable\IBM\CommonObject\Extended\XCOFFAuxilaryHeader.cs" />
<Compile Include="DataFormats\Executable\IBM\CommonObject\Extended\XCOFFDocumentFlags.cs" />
<Compile Include="DataFormats\Executable\ELF\ELFSectionEntry.cs" />
<Compile Include="DataFormats\Executable\Microsoft\PortableExecutable\PECharacteristics.cs" />
<Compile Include="DataFormats\Executable\Microsoft\PortableExecutable\PECompiler.cs" />
<Compile Include="DataFormats\Executable\Microsoft\PortableExecutable\PEHeader.cs" />
<Compile Include="DataFormats\Executable\Microsoft\PortableExecutable\PEMachineType.cs" />
<Compile Include="DataFormats\Executable\Microsoft\PortableExecutable\PEOptionalHeader.cs" />
<Compile Include="DataFormats\Executable\Microsoft\PortableExecutable\PESectionCharacteristics.cs" />
<Compile Include="DataFormats\Executable\Microsoft\PortableExecutable\PESectionHeader.cs" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
@ -114,6 +114,9 @@
<Name>UniversalEditor.Essential</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="DataFormats\Executable\Microsoft\PortableExecutable\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.