Home
last modified time | relevance | path

Searched refs:SectionHeader (Results 1 – 14 of 14) sorted by relevance

/reactos/sdk/lib/rossym/
H A Dfrommem.c23 PIMAGE_SECTION_HEADER SectionHeader; in RosSymCreateFromMem() local
47 SectionHeader = IMAGE_FIRST_SECTION(NtHeaders); in RosSymCreateFromMem()
48 if (ImageSize < (ULONG_PTR)((char *) (SectionHeader + NtHeaders->FileHeader.NumberOfSections) in RosSymCreateFromMem()
57 if (0 == memcmp(SectionName, SectionHeader->Name, IMAGE_SIZEOF_SHORT_NAME)) in RosSymCreateFromMem()
62 SectionHeader++; in RosSymCreateFromMem()
72 if (ImageSize < SectionHeader->PointerToRawData + SectionHeader->SizeOfRawData in RosSymCreateFromMem()
73 || SectionHeader->SizeOfRawData < sizeof(ROSSYM_HEADER)) in RosSymCreateFromMem()
79 if (SectionHeader->VirtualAddress + SectionHeader->Misc.VirtualSize > ImageSize) in RosSymCreateFromMem()
86 return RosSymCreateFromRaw((char *) ImageStart + SectionHeader->VirtualAddress, in RosSymCreateFromMem()
87 SectionHeader->SizeOfRawData, RosSymInfo); in RosSymCreateFromMem()
H A Dfromfile.c23 PIMAGE_SECTION_HEADER SectionHeaders, SectionHeader; in RosSymCreateFromFile() local
83 SectionHeader = SectionHeaders; in RosSymCreateFromFile()
86 if (0 == memcmp(SectionName, SectionHeader->Name, IMAGE_SIZEOF_SHORT_NAME)) in RosSymCreateFromFile()
90 SectionHeader++; in RosSymCreateFromFile()
100 if (! RosSymSeekFile(FileContext, SectionHeader->PointerToRawData)) in RosSymCreateFromFile()
H A Dpe.h56 ulong pefindrva(struct _IMAGE_SECTION_HEADER *SectionHeader, int NumberOfSections, ulong TargetPhys…
/reactos/modules/rostests/apitests/kernel32/
H A DFindActCtxSectionStringW.c169 struct strsection_header *SectionHeader; in TestLibDependency() local
187 SectionHeader = (struct strsection_header*)KeyedData.lpSectionBase; in TestLibDependency()
190 …if(res == FALSE || KeyedData.ulDataFormatVersion != 1 || SectionHeader == NULL || redirData == NUL… in TestLibDependency()
196 ok(SectionHeader->magic == STRSECTION_MAGIC, "%lu\n", SectionHeader->magic ); in TestLibDependency()
197 …ok(SectionHeader->size == sizeof(*SectionHeader), "Got %lu instead of %d\n", SectionHeader->size, … in TestLibDependency()
198 ok(SectionHeader->count == 2, "%lu\n", SectionHeader->count ); /* 2 dlls? */ in TestLibDependency()
215 SectionHeader = (struct strsection_header*)KeyedData.lpSectionBase; in TestLibDependency()
229 ok(SectionHeader->magic == STRSECTION_MAGIC, "%lu\n", SectionHeader->magic ); in TestLibDependency()
230 …ok(SectionHeader->size == sizeof(*SectionHeader), "Got %lu instead of %d\n", SectionHeader->size, … in TestLibDependency()
231 ok(SectionHeader->count == 2, "%lu\n", SectionHeader->count ); /* 2 dlls? */ in TestLibDependency()
[all …]
/reactos/boot/freeldr/freeldr/lib/
H A Dpeloader.c863 PIMAGE_SECTION_HEADER SectionHeader; in PeLdrLoadImageEx() local
907 SectionHeader = IMAGE_FIRST_SECTION(NtHeaders); in PeLdrLoadImageEx()
957 SectionHeader = IMAGE_FIRST_SECTION(NtHeaders); in PeLdrLoadImageEx()
963 VirtualSize = SectionHeader->Misc.VirtualSize; in PeLdrLoadImageEx()
964 SizeOfRawData = SectionHeader->SizeOfRawData; in PeLdrLoadImageEx()
971 if (SectionHeader->PointerToRawData == 0) in PeLdrLoadImageEx()
986 Position.QuadPart = SectionHeader->PointerToRawData; in PeLdrLoadImageEx()
989 TRACE("SH->VA: 0x%X\n", SectionHeader->VirtualAddress); in PeLdrLoadImageEx()
992 …Status = ArcRead(FileId, (PUCHAR)PhysicalBase + SectionHeader->VirtualAddress, SizeOfRawData, &Byt… in PeLdrLoadImageEx()
1004 …RtlZeroMemory((PVOID)(SectionHeader->VirtualAddress + (ULONG_PTR)PhysicalBase + SizeOfRawData), Vi… in PeLdrLoadImageEx()
[all …]
/reactos/dll/ntdll/ldr/
H A Dldrpe.c35 PIMAGE_SECTION_HEADER SectionHeader; in LdrpSnapIAT() local
70 SectionHeader = IMAGE_FIRST_SECTION(NtHeader); in LdrpSnapIAT()
82 if ((Rva >= SectionHeader->VirtualAddress) && in LdrpSnapIAT()
83 (Rva < (SectionHeader->VirtualAddress + in LdrpSnapIAT()
84 SectionHeader->SizeOfRawData))) in LdrpSnapIAT()
88 SectionHeader->VirtualAddress); in LdrpSnapIAT()
91 IatSize = SectionHeader->Misc.VirtualSize; in LdrpSnapIAT()
94 if (!IatSize) IatSize = SectionHeader->SizeOfRawData; in LdrpSnapIAT()
101 SectionHeader++; in LdrpSnapIAT()
/reactos/sdk/lib/rtl/
H A Dimage.c366 PIMAGE_SECTION_HEADER *SectionHeader) in RtlImageRvaToVa() argument
370 if (SectionHeader) in RtlImageRvaToVa()
371 Section = *SectionHeader; in RtlImageRvaToVa()
381 if (SectionHeader) in RtlImageRvaToVa()
382 *SectionHeader = Section; in RtlImageRvaToVa()
/reactos/dll/win32/dbghelp/
H A Dcompat.c77 PIMAGE_SECTION_HEADER *SectionHeader) in __RtlImageRvaToVa() argument
81 if (SectionHeader) in __RtlImageRvaToVa()
82 Section = *SectionHeader; in __RtlImageRvaToVa()
92 if (SectionHeader) in __RtlImageRvaToVa()
93 *SectionHeader = Section; in __RtlImageRvaToVa()
H A Dcompat.h819 …st IMAGE_NT_HEADERS* NtHeader, PVOID BaseAddress, ULONG Rva, PIMAGE_SECTION_HEADER *SectionHeader);
/reactos/ntoskrnl/mm/ARM3/
H A Dsysldr.c2189 PIMAGE_SECTION_HEADER SectionHeader; in MiLocateKernelSections() local
2195 SectionHeader = IMAGE_FIRST_SECTION(NtHeaders); in MiLocateKernelSections()
2199 Sections > 0; --Sections, ++SectionHeader) in MiLocateKernelSections()
2202 Size = max(SectionHeader->SizeOfRawData, SectionHeader->Misc.VirtualSize); in MiLocateKernelSections()
2205 if (*(PULONG)SectionHeader->Name == 'rsr.') in MiLocateKernelSections()
2213 else if (*(PULONG)SectionHeader->Name == 'LOOP') in MiLocateKernelSections()
2216 if (*(PULONG)&SectionHeader->Name[4] == 'EDOC') in MiLocateKernelSections()
2222 else if (*(PUSHORT)&SectionHeader->Name[4] == 'MI') in MiLocateKernelSections()
2229 else if ((*(PULONG)SectionHeader->Name == 'YSIM') && in MiLocateKernelSections()
2230 (*(PULONG)&SectionHeader->Name[4] == 'ETPS')) in MiLocateKernelSections()
[all …]
/reactos/sdk/lib/rossym_new/
H A Dpe.h27 ulong pefindrva(struct _IMAGE_SECTION_HEADER *SectionHeader, int NumberOfSections, ulong TargetPhys…
/reactos/boot/environ/lib/misc/
H A Dimage.c618 PIMAGE_SECTION_HEADER SectionHeader; in BlImgFindSection() local
630 SectionHeader = IMAGE_FIRST_SECTION(NtHeader); in BlImgFindSection()
634 if (!_stricmp((PCCH)SectionHeader->Name, ".rsrc")) in BlImgFindSection()
637 FoundSection = SectionHeader; in BlImgFindSection()
642 SectionHeader++; in BlImgFindSection()
/reactos/win32ss/user/user32/windows/
H A Dclass.c140 struct strsection_header *SectionHeader = KeyedData.lpSectionBase; in ClassNameToVersion() local
143 if(SectionHeader && SectionHeader->count > 0) in ClassNameToVersion()
/reactos/sdk/include/ndk/
H A Drtlfuncs.h3962 _Inout_opt_ PIMAGE_SECTION_HEADER *SectionHeader