Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
51adaa33
Commit
51adaa33
authored
Feb 07, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Print more information from the PE Load Config directory.
parent
8d02e4e2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
121 additions
and
49 deletions
+121
-49
generated.c
dlls/ntdll/tests/generated.c
+38
-32
winnt.h
include/winnt.h
+81
-15
lib.c
tools/winedump/lib.c
+1
-1
pe.c
tools/winedump/pe.c
+0
-0
winedump.h
tools/winedump/winedump.h
+1
-1
No files found.
dlls/ntdll/tests/generated.c
View file @
51adaa33
...
...
@@ -839,15 +839,17 @@ static void test_pack_IMAGE_LINENUMBER(void)
static
void
test_pack_IMAGE_LOAD_CONFIG_DIRECTORY
(
void
)
{
/* IMAGE_LOAD_CONFIG_DIRECTORY */
TEST_TYPE_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY
,
112
)
/* size varies depending on Windows version */
/* TEST_TYPE_SIZE (IMAGE_LOAD_CONFIG_DIRECTORY, 112) */
TEST_TYPE_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY
,
8
)
}
static
void
test_pack_IMAGE_LOAD_CONFIG_DIRECTORY32
(
void
)
{
/* IMAGE_LOAD_CONFIG_DIRECTORY32 */
TEST_TYPE_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
88
)
TEST_TYPE_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
8
)
/* size varies depending on Windows version */
/* TEST_TYPE_SIZE (IMAGE_LOAD_CONFIG_DIRECTORY32, 72) */
TEST_TYPE_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
4
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
Size
,
4
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
Size
,
4
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
Size
,
0
)
...
...
@@ -875,45 +877,46 @@ static void test_pack_IMAGE_LOAD_CONFIG_DIRECTORY32(void)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
DeCommitTotalFreeThreshold
,
4
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
DeCommitTotalFreeThreshold
,
4
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
DeCommitTotalFreeThreshold
,
28
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
LockPrefixTable
,
8
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
LockPrefixTable
,
8
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
LockPrefixTable
,
4
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
LockPrefixTable
,
4
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
LockPrefixTable
,
32
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
MaximumAllocationSize
,
4
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
MaximumAllocationSize
,
4
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
MaximumAllocationSize
,
40
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
MaximumAllocationSize
,
36
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
VirtualMemoryThreshold
,
4
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
VirtualMemoryThreshold
,
4
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
VirtualMemoryThreshold
,
4
4
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
VirtualMemoryThreshold
,
4
0
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
ProcessHeapFlags
,
4
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
ProcessHeapFlags
,
4
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
ProcessHeapFlags
,
4
8
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
ProcessHeapFlags
,
4
4
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
ProcessAffinityMask
,
4
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
ProcessAffinityMask
,
4
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
ProcessAffinityMask
,
52
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
ProcessAffinityMask
,
48
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
CSDVersion
,
2
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
CSDVersion
,
2
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
CSDVersion
,
5
6
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
Reserved1
,
2
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
Reserved1
,
2
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
Reserved1
,
58
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
EditList
,
8
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
EditList
,
8
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
EditList
,
64
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
CSDVersion
,
5
2
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
DependentLoadFlags
,
2
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
DependentLoadFlags
,
2
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
DependentLoadFlags
,
54
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
EditList
,
4
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
EditList
,
4
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
EditList
,
56
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
SecurityCookie
,
4
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
SecurityCookie
,
4
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
SecurityCookie
,
72
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
SecurityCookie
,
60
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
SEHandlerTable
,
4
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
SEHandlerTable
,
4
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
SEHandlerTable
,
76
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
SEHandlerTable
,
64
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
SEHandlerCount
,
4
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
SEHandlerCount
,
4
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
SEHandlerCount
,
80
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
SEHandlerCount
,
68
)
}
static
void
test_pack_IMAGE_LOAD_CONFIG_DIRECTORY64
(
void
)
{
/* IMAGE_LOAD_CONFIG_DIRECTORY64 */
TEST_TYPE_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
112
)
/* size varies depending on Windows version */
/* TEST_TYPE_SIZE (IMAGE_LOAD_CONFIG_DIRECTORY64, 112) */
TEST_TYPE_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
8
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
Size
,
4
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
Size
,
4
)
...
...
@@ -960,9 +963,9 @@ static void test_pack_IMAGE_LOAD_CONFIG_DIRECTORY64(void)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
CSDVersion
,
2
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
CSDVersion
,
2
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
CSDVersion
,
76
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
Reserved1
,
2
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
Reserved1
,
2
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
Reserved1
,
78
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
DependentLoadFlags
,
2
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
DependentLoadFlags
,
2
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
DependentLoadFlags
,
78
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
EditList
,
8
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
EditList
,
8
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
EditList
,
80
)
...
...
@@ -4264,14 +4267,16 @@ static void test_pack_IMAGE_LINENUMBER(void)
static
void
test_pack_IMAGE_LOAD_CONFIG_DIRECTORY
(
void
)
{
/* IMAGE_LOAD_CONFIG_DIRECTORY */
TEST_TYPE_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY
,
72
)
/* size varies depending on Windows version */
/* TEST_TYPE_SIZE (IMAGE_LOAD_CONFIG_DIRECTORY, 72) */
TEST_TYPE_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY
,
4
)
}
static
void
test_pack_IMAGE_LOAD_CONFIG_DIRECTORY32
(
void
)
{
/* IMAGE_LOAD_CONFIG_DIRECTORY32 */
TEST_TYPE_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
72
)
/* size varies depending on Windows version */
/* TEST_TYPE_SIZE (IMAGE_LOAD_CONFIG_DIRECTORY32, 72) */
TEST_TYPE_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
4
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
Size
,
4
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
Size
,
4
)
...
...
@@ -4318,9 +4323,9 @@ static void test_pack_IMAGE_LOAD_CONFIG_DIRECTORY32(void)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
CSDVersion
,
2
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
CSDVersion
,
2
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
CSDVersion
,
52
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
Reserved1
,
2
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
Reserved1
,
2
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
Reserved1
,
54
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
DependentLoadFlags
,
2
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
DependentLoadFlags
,
2
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
DependentLoadFlags
,
54
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
EditList
,
4
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
EditList
,
4
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY32
,
EditList
,
56
)
...
...
@@ -4338,7 +4343,8 @@ static void test_pack_IMAGE_LOAD_CONFIG_DIRECTORY32(void)
static
void
test_pack_IMAGE_LOAD_CONFIG_DIRECTORY64
(
void
)
{
/* IMAGE_LOAD_CONFIG_DIRECTORY64 */
TEST_TYPE_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
112
)
/* size varies depending on Windows version */
/* TEST_TYPE_SIZE (IMAGE_LOAD_CONFIG_DIRECTORY64, 112) */
TEST_TYPE_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
8
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
Size
,
4
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
Size
,
4
)
...
...
@@ -4385,9 +4391,9 @@ static void test_pack_IMAGE_LOAD_CONFIG_DIRECTORY64(void)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
CSDVersion
,
2
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
CSDVersion
,
2
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
CSDVersion
,
76
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
Reserved1
,
2
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
Reserved1
,
2
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
Reserved1
,
78
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
DependentLoadFlags
,
2
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
DependentLoadFlags
,
2
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
DependentLoadFlags
,
78
)
TEST_FIELD_SIZE
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
EditList
,
8
)
TEST_FIELD_ALIGN
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
EditList
,
8
)
TEST_FIELD_OFFSET
(
IMAGE_LOAD_CONFIG_DIRECTORY64
,
EditList
,
80
)
...
...
include/winnt.h
View file @
51adaa33
...
...
@@ -3603,50 +3603,116 @@ typedef struct _FPO_DATA {
WORD
cbFrame
:
2
;
}
FPO_DATA
,
*
PFPO_DATA
;
typedef
struct
_IMAGE_LOAD_CONFIG_CODE_INTEGRITY
{
WORD
Flags
;
WORD
Catalog
;
DWORD
CatalogOffset
;
DWORD
Reserved
;
}
IMAGE_LOAD_CONFIG_CODE_INTEGRITY
,
*
PIMAGE_LOAD_CONFIG_CODE_INTEGRITY
;
typedef
struct
_IMAGE_LOAD_CONFIG_DIRECTORY64
{
DWORD
Size
;
DWORD
Size
;
/* 000 */
DWORD
TimeDateStamp
;
WORD
MajorVersion
;
WORD
MinorVersion
;
DWORD
GlobalFlagsClear
;
DWORD
GlobalFlagsSet
;
DWORD
GlobalFlagsSet
;
/* 010 */
DWORD
CriticalSectionDefaultTimeout
;
ULONGLONG
DeCommitFreeBlockThreshold
;
ULONGLONG
DeCommitTotalFreeThreshold
;
ULONGLONG
DeCommitTotalFreeThreshold
;
/* 020 */
ULONGLONG
LockPrefixTable
;
ULONGLONG
MaximumAllocationSize
;
ULONGLONG
MaximumAllocationSize
;
/* 030 */
ULONGLONG
VirtualMemoryThreshold
;
ULONGLONG
ProcessAffinityMask
;
ULONGLONG
ProcessAffinityMask
;
/* 040 */
DWORD
ProcessHeapFlags
;
WORD
CSDVersion
;
WORD
Reserved1
;
ULONGLONG
EditList
;
WORD
DependentLoadFlags
;
ULONGLONG
EditList
;
/* 050 */
ULONGLONG
SecurityCookie
;
ULONGLONG
SEHandlerTable
;
ULONGLONG
SEHandlerTable
;
/* 060 */
ULONGLONG
SEHandlerCount
;
ULONGLONG
GuardCFCheckFunctionPointer
;
/* 070 */
ULONGLONG
GuardCFDispatchFunctionPointer
;
ULONGLONG
GuardCFFunctionTable
;
/* 080 */
ULONGLONG
GuardCFFunctionCount
;
DWORD
GuardFlags
;
/* 090 */
IMAGE_LOAD_CONFIG_CODE_INTEGRITY
CodeIntegrity
;
ULONGLONG
GuardAddressTakenIatEntryTable
;
/* 0a0 */
ULONGLONG
GuardAddressTakenIatEntryCount
;
ULONGLONG
GuardLongJumpTargetTable
;
/* 0b0 */
ULONGLONG
GuardLongJumpTargetCount
;
ULONGLONG
DynamicValueRelocTable
;
/* 0c0 */
ULONGLONG
CHPEMetadataPointer
;
ULONGLONG
GuardRFFailureRoutine
;
/* 0d0 */
ULONGLONG
GuardRFFailureRoutineFunctionPointer
;
DWORD
DynamicValueRelocTableOffset
;
/* 0e0 */
WORD
DynamicValueRelocTableSection
;
WORD
Reserved2
;
ULONGLONG
GuardRFVerifyStackPointerFunctionPointer
;
DWORD
HotPatchTableOffset
;
/* 0f0 */
DWORD
Reserved3
;
ULONGLONG
EnclaveConfigurationPointer
;
ULONGLONG
VolatileMetadataPointer
;
/* 100 */
ULONGLONG
GuardEHContinuationTable
;
ULONGLONG
GuardEHContinuationCount
;
/* 110 */
ULONGLONG
GuardXFGCheckFunctionPointer
;
ULONGLONG
GuardXFGDispatchFunctionPointer
;
/* 120 */
ULONGLONG
GuardXFGTableDispatchFunctionPointer
;
ULONGLONG
CastGuardOsDeterminedFailureMode
;
/* 130 */
ULONGLONG
GuardMemcpyFunctionPointer
;
}
IMAGE_LOAD_CONFIG_DIRECTORY64
,
*
PIMAGE_LOAD_CONFIG_DIRECTORY64
;
typedef
struct
_IMAGE_LOAD_CONFIG_DIRECTORY32
{
DWORD
Size
;
DWORD
Size
;
/* 000 */
DWORD
TimeDateStamp
;
WORD
MajorVersion
;
WORD
MinorVersion
;
DWORD
GlobalFlagsClear
;
DWORD
GlobalFlagsSet
;
DWORD
GlobalFlagsSet
;
/* 010 */
DWORD
CriticalSectionDefaultTimeout
;
DWORD
DeCommitFreeBlockThreshold
;
DWORD
DeCommitTotalFreeThreshold
;
PVOID
LockPrefixTable
;
DWORD
LockPrefixTable
;
/* 020 */
DWORD
MaximumAllocationSize
;
DWORD
VirtualMemoryThreshold
;
DWORD
ProcessHeapFlags
;
DWORD
ProcessAffinityMask
;
DWORD
ProcessAffinityMask
;
/* 030 */
WORD
CSDVersion
;
WORD
Reserved1
;
PVOI
D
EditList
;
WORD
DependentLoadFlags
;
DWOR
D
EditList
;
DWORD
SecurityCookie
;
DWORD
SEHandlerTable
;
DWORD
SEHandlerTable
;
/* 040 */
DWORD
SEHandlerCount
;
DWORD
GuardCFCheckFunctionPointer
;
DWORD
GuardCFDispatchFunctionPointer
;
DWORD
GuardCFFunctionTable
;
/* 050 */
DWORD
GuardCFFunctionCount
;
DWORD
GuardFlags
;
IMAGE_LOAD_CONFIG_CODE_INTEGRITY
CodeIntegrity
;
DWORD
GuardAddressTakenIatEntryTable
;
DWORD
GuardAddressTakenIatEntryCount
;
DWORD
GuardLongJumpTargetTable
;
/* 070 */
DWORD
GuardLongJumpTargetCount
;
DWORD
DynamicValueRelocTable
;
DWORD
CHPEMetadataPointer
;
DWORD
GuardRFFailureRoutine
;
/* 080 */
DWORD
GuardRFFailureRoutineFunctionPointer
;
DWORD
DynamicValueRelocTableOffset
;
WORD
DynamicValueRelocTableSection
;
WORD
Reserved2
;
DWORD
GuardRFVerifyStackPointerFunctionPointer
;
/* 090 */
DWORD
HotPatchTableOffset
;
DWORD
Reserved3
;
DWORD
EnclaveConfigurationPointer
;
DWORD
VolatileMetadataPointer
;
/* 0a0 */
DWORD
GuardEHContinuationTable
;
DWORD
GuardEHContinuationCount
;
DWORD
GuardXFGCheckFunctionPointer
;
DWORD
GuardXFGDispatchFunctionPointer
;
/* 0b0 */
DWORD
GuardXFGTableDispatchFunctionPointer
;
DWORD
CastGuardOsDeterminedFailureMode
;
DWORD
GuardMemcpyFunctionPointer
;
}
IMAGE_LOAD_CONFIG_DIRECTORY32
,
*
PIMAGE_LOAD_CONFIG_DIRECTORY32
;
#ifdef _WIN64
...
...
tools/winedump/lib.c
View file @
51adaa33
...
...
@@ -243,7 +243,7 @@ void lib_dump(void)
if
(
globals
.
do_dumpheader
)
{
dump_file_header
(
fh
);
dump_file_header
(
fh
,
FALSE
);
if
(
fh
->
SizeOfOptionalHeader
)
{
const
IMAGE_OPTIONAL_HEADER32
*
oh
=
(
const
IMAGE_OPTIONAL_HEADER32
*
)((
const
char
*
)
fh
+
sizeof
(
*
fh
));
...
...
tools/winedump/pe.c
View file @
51adaa33
This diff is collapsed.
Click to expand it.
tools/winedump/winedump.h
View file @
51adaa33
...
...
@@ -230,7 +230,7 @@ const char* get_guid_str(const GUID* guid);
const
char
*
get_unicode_str
(
const
WCHAR
*
str
,
int
len
);
const
char
*
get_symbol_str
(
const
char
*
symname
);
void
print_fake_dll
(
void
);
void
dump_file_header
(
const
IMAGE_FILE_HEADER
*
);
void
dump_file_header
(
const
IMAGE_FILE_HEADER
*
,
BOOL
);
void
dump_optional_header
(
const
IMAGE_OPTIONAL_HEADER32
*
,
UINT
);
void
dump_section
(
const
IMAGE_SECTION_HEADER
*
,
const
char
*
strtable
);
void
dump_section_characteristics
(
DWORD
characteristics
,
const
char
*
sep
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment