mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
2d78ed402d
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@495 21ef857c-d57f-4fe0-8362-d861dc6d29cd
133 lines
3.3 KiB
C#
133 lines
3.3 KiB
C#
/*
|
|
* Process Hacker -
|
|
* image data
|
|
*
|
|
* Copyright (C) 2008 wj32
|
|
* Descriptions from the PE/COFF specification from Microsoft.
|
|
*
|
|
* This file is part of Process Hacker.
|
|
*
|
|
* Process Hacker 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.
|
|
*
|
|
* Process Hacker 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 Process Hacker. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace ProcessHacker.PE
|
|
{
|
|
/// <summary>
|
|
/// The type of image data.
|
|
/// </summary>
|
|
public enum ImageDataType
|
|
{
|
|
/// <summary>
|
|
/// The export table.
|
|
/// </summary>
|
|
ExportTable = 0,
|
|
|
|
/// <summary>
|
|
/// The import table.
|
|
/// </summary>
|
|
ImportTable,
|
|
|
|
/// <summary>
|
|
/// The resource table.
|
|
/// </summary>
|
|
ResourceTable,
|
|
|
|
/// <summary>
|
|
/// The exception table.
|
|
/// </summary>
|
|
ExceptionTable,
|
|
|
|
/// <summary>
|
|
/// The attribute certificate table.
|
|
/// </summary>
|
|
CertificateTable,
|
|
|
|
/// <summary>
|
|
/// The base relocation table.
|
|
/// </summary>
|
|
BaseRelocationTable,
|
|
|
|
/// <summary>
|
|
/// The debug data.
|
|
/// </summary>
|
|
Debug,
|
|
|
|
/// <summary>
|
|
/// Reserved, must be zero.
|
|
/// </summary>
|
|
Architecture,
|
|
|
|
/// <summary>
|
|
/// The RVA of the value to be stored in the global pointer register.
|
|
/// </summary>
|
|
GlobalPtr,
|
|
|
|
/// <summary>
|
|
/// The thread local storage (TLS) table.
|
|
/// </summary>
|
|
TLSTable,
|
|
|
|
/// <summary>
|
|
/// The load configuration table.
|
|
/// </summary>
|
|
LoadConfigTable,
|
|
|
|
/// <summary>
|
|
/// The bound import table.
|
|
/// </summary>
|
|
BoundImport,
|
|
|
|
/// <summary>
|
|
/// The import address table.
|
|
/// </summary>
|
|
IAT,
|
|
|
|
/// <summary>
|
|
/// The delay import descriptor.
|
|
/// </summary>
|
|
DelayImportDescriptor,
|
|
|
|
/// <summary>
|
|
/// The CLR runtime header.
|
|
/// </summary>
|
|
CLRRuntimeHeader,
|
|
|
|
/// <summary>
|
|
/// Reserved, must be zero.
|
|
/// </summary>
|
|
Reserved
|
|
}
|
|
|
|
/// <summary>
|
|
/// Represents a data directory containing the address and size of a table
|
|
/// or string in the image.
|
|
/// </summary>
|
|
public struct ImageData
|
|
{
|
|
/// <summary>
|
|
/// The relative virtual address (RVA) of the table.
|
|
/// </summary>
|
|
public uint VirtualAddress;
|
|
|
|
/// <summary>
|
|
/// The size, in bytes, of the table.
|
|
/// </summary>
|
|
public uint Size;
|
|
}
|
|
}
|