mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-16 18:43:25 +00:00
Ensures consistency by using `std::uint16_t` instead of `uint16_t` for the `SubsystemId` enum. Relates to feature/pe_scanner
23 lines
484 B
C++
23 lines
484 B
C++
//
|
|
// Created by Vlad on 10/9/2025.
|
|
//
|
|
|
|
#pragma once
|
|
#include "file_header.hpp"
|
|
#include "optional_header.hpp"
|
|
|
|
namespace omath::system::pe
|
|
{
|
|
enum class NtArchitecture
|
|
{
|
|
x32_bit,
|
|
x64_bit,
|
|
};
|
|
template<NtArchitecture architecture>
|
|
struct ImageNtHeaders final
|
|
{
|
|
std::uint32_t signature;
|
|
FileHeader file_header;
|
|
OptionalHeader<architecture == NtArchitecture::x64_bit> optional_header;
|
|
};
|
|
} // namespace omath::system::pe
|