24 unsigned SectionIndex;
31 DPRINT1(
"Failed to read DOS header\n");
36 DPRINT1(
"Image doesn't have a valid DOS header\n");
43 DPRINT1(
"Failed seeking to NT headers\n");
48 DPRINT1(
"Failed to read NT headers\n");
53 DPRINT1(
"Image doesn't have a valid PE header\n");
59 (
char *) &NtHeaders + DosHeader.
e_lfanew))
61 DPRINT1(
"Failed seeking to section headers\n");
66 if (
NULL == SectionHeaders)
68 DPRINT1(
"Failed to allocate memory for %u section headers\n",
77 DPRINT1(
"Failed to read section headers\n");
83 SectionHeader = SectionHeaders;
103 DPRINT1(
"Failed seeking to section data\n");
109 DPRINT1(
"Failed to read rossym header\n");
116 DPRINT1(
"Invalid ROSSYM_HEADER\n");
122 if (
NULL == *RosSymInfo)
124 DPRINT1(
"Failed to allocate memory for rossym\n");
137 DPRINT1(
"Failed to read rossym headers\n");
141 (*RosSymInfo)->Strings[(*RosSymInfo)->StringsLength] =
'\0';
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
_In_ PFCB _In_ PCD_NAME _In_ BOOLEAN _Inout_ PFILE_ENUM_CONTEXT FileContext
#define IMAGE_FIRST_SECTION(NtHeader)
#define IMAGE_SIZEOF_SHORT_NAME
BOOLEAN RosSymCreateFromFile(PVOID FileContext, PROSSYM_INFO *RosSymInfo)
#define RosSymSeekFile(FileContext, Position)
#define RosSymAllocMem(Size)
#define RosSymFreeMem(Area)
#define RosSymReadFile(FileContext, Buffer, Size)
#define ROSSYM_IS_VALID_NT_HEADERS(NtHeaders)
#define ROSSYM_IS_VALID_DOS_HEADER(DosHeader)
#define ROSSYM_SECTION_NAME
struct _ROSSYM_ENTRY * PROSSYM_ENTRY
struct _ROSSYM_ENTRY ROSSYM_ENTRY
struct _ROSSYM_HEADER ROSSYM_HEADER
struct _ROSSYM_INFO ROSSYM_INFO