2022-12-14 20:47:18 -08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
2023-03-07 16:59:14 -05:00
|
|
|
|
namespace BinaryObjectScanner.Models.PortableExecutable
|
2022-12-14 20:47:18 -08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// This file describes the format of the pdb (Program Database) files of the "RSDS"
|
|
|
|
|
|
/// or "DS" type which are emitted by Miscrosoft's link.exe from version 7 and above.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <see href="http://www.godevtool.com/Other/pdb.htm"/>
|
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
2022-12-27 17:12:55 -08:00
|
|
|
|
public sealed class RSDSProgramDatabase
|
2022-12-14 20:47:18 -08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// "RSDS" signature
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public uint Signature;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 16-byte Globally Unique Identifier
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public Guid GUID;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-12-14 20:56:13 -08:00
|
|
|
|
/// Ever-incrementing value, which is initially set to 1 and
|
|
|
|
|
|
/// incremented every time when a part of the PDB file is updated
|
|
|
|
|
|
/// without rewriting the whole file.
|
2022-12-14 20:47:18 -08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public uint Age;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// zero terminated UTF8 path and file name
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string PathAndFileName;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|