Redesign a way of storing module information; this allows to store more data in a single section, like license or a list of authors, as well as solves the problem with different module name lengths

This commit is contained in:
2024-02-28 23:28:33 +01:00
parent 4b34f7db4b
commit 17c50ea912
12 changed files with 354 additions and 55 deletions

View File

@@ -190,6 +190,13 @@ typedef struct _XTBL_MEMORY_MAPPING
LOADER_MEMORY_TYPE MemoryType;
} XTBL_MEMORY_MAPPING, *PXTBL_MEMORY_MAPPING;
/* XTLDR Module dependencies data */
typedef struct _XTBL_MODULE_AUTHORS
{
LIST_ENTRY Flink;
PWCHAR AuthorName;
} XTBL_MODULE_AUTHORS, *PXTBL_MODULE_AUTHORS;
/* XTLDR Module dependencies data */
typedef struct _XTBL_MODULE_DEPS
{
@@ -203,6 +210,9 @@ typedef struct _XTBL_MODULE_INFO
LIST_ENTRY Flink;
PWCHAR ModuleName;
PWCHAR ModuleDescription;
PWCHAR License;
PWCHAR Version;
LIST_ENTRY Authors;
LIST_ENTRY Dependencies;
PVOID ModuleBase;
ULONGLONG ModuleSize;