00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "global.h"
00023 #include "htendian.h"
00024 #include "pestruct.h"
00025 #include "coff_s.h"
00026
00027 byte PE_DATA_DIRECTORY_struct[] = {
00028 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00029 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00030 0
00031 };
00032
00033
00034 byte PE_OPTIONAL_HEADER32_NT_struct[] = {
00035 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00036 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00037 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00038 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00039 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00040 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00041 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00042 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00043 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00044 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00045 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00046 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00047 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00048 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00049 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00050 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00051 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00052 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00053 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00054 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00055 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00056 0
00057 };
00058
00059 byte PE_OPTIONAL_HEADER64_NT_struct[] = {
00060 STRUCT_ENDIAN_QWORD | STRUCT_ENDIAN_HOST,
00061 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00062 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00063 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00064 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00065 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00066 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00067 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00068 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00069 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00070 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00071 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00072 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00073 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00074 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00075 STRUCT_ENDIAN_QWORD | STRUCT_ENDIAN_HOST,
00076 STRUCT_ENDIAN_QWORD | STRUCT_ENDIAN_HOST,
00077 STRUCT_ENDIAN_QWORD | STRUCT_ENDIAN_HOST,
00078 STRUCT_ENDIAN_QWORD | STRUCT_ENDIAN_HOST,
00079 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00080 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00081 0
00082 };
00083
00084
00085 byte PE_EXPORT_DIRECTORY_struct[] = {
00086 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00087 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00088 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00089 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00090 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00091 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00092 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00093 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00094 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00095 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00096 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00097 0
00098 };
00099
00100 byte PE_THUNK_DATA_struct[] = {
00101 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00102 0
00103 };
00104
00105 byte PE_THUNK_DATA_64_struct[] = {
00106 STRUCT_ENDIAN_QWORD | STRUCT_ENDIAN_HOST,
00107 0
00108 };
00109
00110 byte PE_IMPORT_DESCRIPTOR_struct[] = {
00111 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00112 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00113 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00114 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00115 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00116 0
00117 };
00118
00119 byte PE_DELAY_IMPORT_DESCRIPTOR_struct[] = {
00120 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00121 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00122 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00123 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00124 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00125 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00126 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00127 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00128 0
00129 };
00130
00131 byte PE_RESOURCE_DIRECTORY_struct[] = {
00132 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00133 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00134 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00135 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00136 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00137 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00138 0
00139 };
00140
00141 byte PE_RESOURCE_DIRECTORY_ENTRY_struct[] = {
00142 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00143 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00144 0
00145 };
00146
00147 byte PE_RESOURCE_DATA_ENTRY_struct[] = {
00148 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00149 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00150 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00151 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00152 0
00153 };
00154
00155 byte PE_IL_DIRECTORY_struct[] = {
00156 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00157 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00158 STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00159 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00160 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00161 STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00162 0
00163 };