@@ -14,32 +14,32 @@ type ImageDelayImportDescriptor struct {
14
14
// in the image. This field can be used to extend the record by indicating
15
15
// the presence of new fields, or it can be used to indicate behaviors to
16
16
// the delay or unload helper functions.
17
- Attributes uint32
17
+ Attributes uint32 `json:"attributes"`
18
18
19
19
// The name of the DLL to be delay-loaded resides in the read-only data
20
20
// section of the image. It is referenced through the szName field.
21
- Name uint32
21
+ Name uint32 `json:"name"`
22
22
23
23
// The handle of the DLL to be delay-loaded is in the data section of the
24
24
// image. The phmod field points to the handle. The supplied delay-load
25
25
// helper uses this location to store the handle to the loaded DLL.
26
- ModuleHandleRVA uint32
26
+ ModuleHandleRVA uint32 `json:"module_handle_rva"`
27
27
28
28
// The delay import address table (IAT) is referenced by the delay import
29
29
// descriptor through the pIAT field. The delay-load helper updates these
30
30
// pointers with the real entry points so that the thunks are no longer in
31
31
// the calling loop
32
- ImportAddressTableRVA uint32
32
+ ImportAddressTableRVA uint32 `json:"import_address_table_rva"`
33
33
34
34
// The delay import name table (INT) contains the names of the imports that
35
35
// might require loading. They are ordered in the same fashion as the
36
36
// function pointers in the IAT.
37
- ImportNameTableRVA uint32
37
+ ImportNameTableRVA uint32 `json:"import_name_table_rva"`
38
38
39
39
// The delay bound import address table (BIAT) is an optional table of
40
40
// IMAGE_THUNK_DATA items that is used along with the timestamp field
41
41
// of the delay-load directory table by a post-process binding phase.
42
- BoundImportAddressTableRVA uint32
42
+ BoundImportAddressTableRVA uint32 `json:"bound_import_address_table_rva"`
43
43
44
44
// The delay unload import address table (UIAT) is an optional table of
45
45
// IMAGE_THUNK_DATA items that the unload code uses to handle an explicit
@@ -48,18 +48,18 @@ type ImageDelayImportDescriptor struct {
48
48
// delay-load thunks. On the unload request, the library can be freed,
49
49
// the *phmod cleared, and the UIAT written over the IAT to restore
50
50
// everything to its preload state.
51
- UnloadInformationTableRVA uint32
51
+ UnloadInformationTableRVA uint32 `json:"unload_information_table_rva"`
52
52
53
53
// 0 if not bound, otherwise, date/time of the target DLL.
54
- TimeDateStamp uint32
54
+ TimeDateStamp uint32 `json:"time_date_stamp"`
55
55
}
56
56
57
57
// DelayImport represents an entry in the delay import table.
58
58
type DelayImport struct {
59
- Offset uint32
60
- Name string
61
- Functions []ImportFunction
62
- Descriptor ImageDelayImportDescriptor
59
+ Offset uint32 `json:"offset"`
60
+ Name string `json:"name"`
61
+ Functions []ImportFunction `json:"functions"`
62
+ Descriptor ImageDelayImportDescriptor `json:"descriptor"`
63
63
}
64
64
65
65
// Delay-Load Import Tables tables were added to the image to support a uniform
0 commit comments