102 lines
2.9 KiB
C#
102 lines
2.9 KiB
C#
//
|
|
// ExecutableCharacteristics.cs - indicates attributes of the executable
|
|
//
|
|
// Author:
|
|
// Michael Becker <alcexhim@gmail.com>
|
|
//
|
|
// Copyright (c) 2011-2020 Mike Becker's Software
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
using System;
|
|
|
|
namespace UniversalEditor.ObjectModels.Executable
|
|
{
|
|
/// <summary>
|
|
/// Indicates attributes of the executable.
|
|
/// </summary>
|
|
[Flags()]
|
|
public enum ExecutableCharacteristics : ushort
|
|
{
|
|
/// <summary>
|
|
/// No characteristics defined.
|
|
/// </summary>
|
|
None = 0,
|
|
/// <summary>
|
|
/// Relocation information stripped from a file.
|
|
/// </summary>
|
|
RelocationInformationStripped = 0x0001,
|
|
/// <summary>
|
|
/// The file is executable.
|
|
/// </summary>
|
|
ExecutableImage = 0x0002,
|
|
/// <summary>
|
|
/// Line numbers stripped from file.
|
|
/// </summary>
|
|
LineNumbersStripped = 0x0004,
|
|
/// <summary>
|
|
/// Local symbols stripped from file.
|
|
/// </summary>
|
|
LocalSymbolsStripped = 0x0008,
|
|
/// <summary>
|
|
/// Lets the OS aggressively trim the working set.
|
|
/// </summary>
|
|
AggressiveWorkingSetTrim = 0x0010,
|
|
/// <summary>
|
|
/// Lets the OS aggressively trim the working set.
|
|
/// </summary>
|
|
MinimalObject = 0x0010,
|
|
/// <summary>
|
|
/// The application can handle addresses greater than two gigabytes.
|
|
/// </summary>
|
|
UpdateObject = 0x0020,
|
|
/// <summary>
|
|
/// The application can handle addresses greater than two gigabytes.
|
|
/// </summary>
|
|
LargeAddressAware = 0x0020,
|
|
/// <summary>
|
|
/// This requires a 32-bit word machine.
|
|
/// </summary>
|
|
Require32BitWord = 0x0100,
|
|
/// <summary>
|
|
/// Debug information is stripped to a .DBG file.
|
|
/// </summary>
|
|
DebugStripped = 0x0200,
|
|
/// <summary>
|
|
/// If the image is on removable media, copy to and run from the swap file.
|
|
/// </summary>
|
|
RemovableRunFromSwap = 0x0400,
|
|
/// <summary>
|
|
/// If the image is on a network, copy to and run from the swap file.
|
|
/// </summary>
|
|
NetworkRunFromSwap = 0x0800,
|
|
/// <summary>
|
|
/// File is a system file.
|
|
/// </summary>
|
|
IsSystemFile = 0x1000,
|
|
/// <summary>
|
|
/// File is a DLL.
|
|
/// </summary>
|
|
IsDynamicLinkLibrary = 0x2000,
|
|
/// <summary>
|
|
/// The file should only be run on single-processor machines.
|
|
/// </summary>
|
|
UniprocessorOnly = 0x4000,
|
|
/// <summary>
|
|
/// Bytes of machine word are reversed
|
|
/// </summary>
|
|
ReverseByteOrder = 0x8000
|
|
}
|
|
}
|