Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (19 sloc) 513 Bytes
using System;
using System.Runtime.InteropServices;
namespace PatchIat
{
[StructLayout(LayoutKind.Sequential)]
internal struct ImageNTHeaders
{
public ImageNTSignature Signature;
public ImageFileHeader FileHeader;
public ImageOptionalHeader OptionalHeader;
public void VerifySignature()
{
if (Signature != ImageNTSignature.PE00)
{
throw new BadImageFormatException();
}
}
}
}