20{
24 unsigned SectionIndex;
27
28
30 {
31 DPRINT1(
"Failed to read DOS header\n");
33 }
35 {
36 DPRINT1(
"Image doesn't have a valid DOS header\n");
38 }
39
40
42 {
43 DPRINT1(
"Failed seeking to NT headers\n");
45 }
47 {
48 DPRINT1(
"Failed to read NT headers\n");
50 }
52 {
53 DPRINT1(
"Image doesn't have a valid PE header\n");
55 }
56
57
59 (
char *) &NtHeaders + DosHeader.
e_lfanew))
60 {
61 DPRINT1(
"Failed seeking to section headers\n");
63 }
66 if (
NULL == SectionHeaders)
67 {
68 DPRINT1(
"Failed to allocate memory for %u section headers\n",
71 }
75 {
77 DPRINT1(
"Failed to read section headers\n");
79 }
80
81
83 SectionHeader = SectionHeaders;
85 {
87 {
88 break;
89 }
90 SectionHeader++;
91 }
93 {
97 }
98
99
101 {
103 DPRINT1(
"Failed seeking to section data\n");
105 }
108 {
109 DPRINT1(
"Failed to read rossym header\n");
111 }
115 {
116 DPRINT1(
"Invalid ROSSYM_HEADER\n");
118 }
119
122 if (
NULL == *RosSymInfo)
123 {
124 DPRINT1(
"Failed to allocate memory for rossym\n");
126 }
136 {
137 DPRINT1(
"Failed to read rossym headers\n");
139 }
140
141 (*RosSymInfo)->Strings[(*RosSymInfo)->StringsLength] = '\0';
142
144}
int memcmp(void *Buffer1, void *Buffer2, 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
#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