Add X_RUNTIME_FUNCTION

This commit is contained in:
Sajid
2024-09-11 21:21:23 +06:00
parent 6e48ca31ab
commit 9d6c760ab9
4 changed files with 39 additions and 8 deletions

View File

@@ -90,12 +90,6 @@ typedef struct _XEX_HEADER
be<uint32_t> NumberOfOptionalHeaders;
} XEX_HEADER;
typedef struct _X_RUNTIME_FUNCTION
{
be<DWORD> BeginAddress;
be<DWORD> Flags; // honestly, no idea
} X_RUNTIME_FUNCTION;
template<typename T>
inline static const T* Xex2FindOptionalHeader(const void* base, const XEX_OPTIONAL_HEADER* headers, size_t n, _XEX_OPTIONAL_HEADER_TYPES type)
{
@@ -124,4 +118,4 @@ inline static const T* Xex2FindOptionalHeader(const XEX_HEADER* header, _XEX_OPT
}
struct Image;
Image Xex2LoadImage(const uint8_t* data);
Image Xex2LoadImage(const uint8_t* data);