21{
25 unsigned SectionIndex;
28
29
31 {
32 DPRINT1(
"Failed to read DOS header\n");
34 }
36 {
37 DPRINT1(
"Image doesn't have a valid DOS header\n");
39 }
40
41
43 {
44 DPRINT1(
"Failed seeking to NT headers\n");
46 }
48 {
49 DPRINT1(
"Failed to read NT headers\n");
51 }
53 {
54 DPRINT1(
"Image doesn't have a valid PE header\n");
56 }
57
58
60 (
char *) &NtHeaders + DosHeader.
e_lfanew))
61 {
62 DPRINT1(
"Failed seeking to section headers\n");
64 }
67 if (
NULL == SectionHeaders)
68 {
69 DPRINT1(
"Failed to allocate memory for %u section headers\n",
72 }
76 {
78 DPRINT1(
"Failed to read section headers\n");
80 }
81
82
84 SectionHeader = SectionHeaders;
86 {
88 {
89 break;
90 }
91 SectionHeader++;
92 }
94 {
98 }
99
100
102 {
104 DPRINT1(
"Failed seeking to section data\n");
106 }
109 {
110 DPRINT1(
"Failed to read rossym header\n");
112 }
116 {
117 DPRINT1(
"Invalid ROSSYM_HEADER\n");
119 }
120
123 if (
NULL == *RosSymInfo)
124 {
125 DPRINT1(
"Failed to allocate memory for rossym\n");
127 }
137 {
138 DPRINT1(
"Failed to read rossym headers\n");
140 }
141
142 (*RosSymInfo)->Strings[(*RosSymInfo)->StringsLength] = '\0';
143
145}
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
#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