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

@@ -162,6 +162,24 @@ struct _XLIST_ENTRY;
typedef _XLIST_ENTRY XLIST_ENTRY;
typedef xpointer<XLIST_ENTRY> PXLIST_ENTRY;
typedef struct _X_RUNTIME_FUNCTION
{
DWORD BeginAddress;
union
{
DWORD Data;
struct
{
DWORD FunctionType : 2;
DWORD FunctionLength : 22;
DWORD PrologLength : 8;
};
};
} X_RUNTIME_FUNCTION;
static_assert(sizeof(X_RUNTIME_FUNCTION) == 8);
typedef struct _XLIST_ENTRY
{
XDWORD Flink;
@@ -285,4 +303,4 @@ typedef struct _XKSEMAPHORE
{
XDISPATCHER_HEADER Header;
XDWORD Limit;
} XKSEMAPHORE;
} XKSEMAPHORE;