Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

pestruct.cc

Go to the documentation of this file.
00001 /* 
00002  *      HT Editor
00003  *      pestruct.cc
00004  *
00005  *      Copyright (C) 1999-2002 Stefan Weyergraf (stefan@weyergraf.de)
00006  *
00007  *      This program is free software; you can redistribute it and/or modify
00008  *      it under the terms of the GNU General Public License version 2 as
00009  *      published by the Free Software Foundation.
00010  *
00011  *      This program is distributed in the hope that it will be useful,
00012  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *      GNU General Public License for more details.
00015  *
00016  *      You should have received a copy of the GNU General Public License
00017  *      along with this program; if not, write to the Free Software
00018  *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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 };

Generated on Fri May 7 21:15:42 2004 by doxygen 1.3.5