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

htpeil.h

Go to the documentation of this file.
00001 /* 
00002  *      HT Editor
00003  *      htpeil.h
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 #ifndef __HTPEIL_H__
00022 #define __HTPEIL_H__
00023 
00024 #include "common.h"
00025 #include "formats.h"
00026 #include "htdata.h"
00027 #include "ilstruct.h"
00028 
00029 extern format_viewer_if htpeil_if;
00030 
00031 class ht_il_metadata_entry: public Object {
00032 public:
00033         char *name;
00034         dword offset;
00035         dword size;
00036         ht_il_metadata_entry(char *name, dword offset, dword size);
00037         ~ht_il_metadata_entry();
00038 };
00039 
00040 class ht_pe_il: public Object {
00041 public:
00042         PE_IL_DIRECTORY dir;
00043         IL_METADATA_SECTION metadata;
00044         ht_clist *entries;
00045         dword string_pool_size;
00046         char *string_pool;
00047 };
00048 
00049 /*
00050  *      CLASS ht_pe_header_viewer
00051  */
00052 
00053 class ht_pe_il_viewer: public ht_uformat_viewer {
00054 public:
00055                         void init(bounds *b, char *desc, int caps, ht_streamfile *file, ht_format_group *group);
00056                 virtual void done();
00057 };
00058 
00059 int ILunpackDword(dword &result, const byte *buf, int len);
00060 int ILunpackToken(dword &result, const byte *buf, int len);
00061 
00062 #endif /* !__HTPEIL_H__ */

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