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

htpef.h File Reference

#include "pefstruc.h"
#include "htpefimp.h"
#include "formats.h"
#include "htendian.h"
#include "htformat.h"

Go to the source code of this file.

Classes

class  ht_pef
struct  ht_pef_shared_data
struct  pef_section_headers

Defines

#define DESC_PEF   "pef"
#define DESC_PEF_HEADER   "pef/header"
#define DESC_PEF_IMPORTS   "pef/imports"
#define DESC_PEF_IMAGE   "pef/image"
#define ATOM_PEF_ARCH   0x50454600
#define ATOM_PEF_ARCH_STR   "50454600"
#define ATOM_PEF_SECTION_KIND   0x50454601
#define ATOM_PEF_SECTION_KIND_STR   "50454601"
#define ATOM_PEF_SHARE_KIND   0x50454602
#define ATOM_PEF_SHARE_KIND_STR   "50454602"

Functions

bool pef_phys_and_mem_section (PEF_SECTION_HEADER *s)
bool pef_valid_section (PEF_SECTION_HEADER *s)
bool pef_addr_to_section (pef_section_headers *section_headers, PEFAddress addr, int *section)
bool pef_addr_to_ofs (pef_section_headers *section_headers, PEFAddress addr, dword *ofs)
bool pef_addr_is_valid (pef_section_headers *section_headers, PEFAddress addr)
bool pef_ofs_to_addr (pef_section_headers *section_headers, dword ofs, PEFAddress *addr)
bool pef_ofs_to_section (pef_section_headers *section_headers, dword ofs, dword *section)

Variables

format_viewer_if htpef_if


Define Documentation

#define ATOM_PEF_ARCH   0x50454600
 

Definition at line 35 of file htpef.h.

Referenced by htpefheader_init().

#define ATOM_PEF_ARCH_STR   "50454600"
 

Definition at line 36 of file htpef.h.

#define ATOM_PEF_SECTION_KIND   0x50454601
 

Definition at line 38 of file htpef.h.

Referenced by htpefheader_init().

#define ATOM_PEF_SECTION_KIND_STR   "50454601"
 

Definition at line 39 of file htpef.h.

#define ATOM_PEF_SHARE_KIND   0x50454602
 

Definition at line 41 of file htpef.h.

Referenced by htpefheader_init().

#define ATOM_PEF_SHARE_KIND_STR   "50454602"
 

Definition at line 42 of file htpef.h.

#define DESC_PEF   "pef"
 

Definition at line 30 of file htpef.h.

Referenced by ht_pef::init().

#define DESC_PEF_HEADER   "pef/header"
 

Definition at line 31 of file htpef.h.

Referenced by htpefheader_init().

#define DESC_PEF_IMAGE   "pef/image"
 

Definition at line 33 of file htpef.h.

Referenced by htpefimage_init().

#define DESC_PEF_IMPORTS   "pef/imports"
 

Definition at line 32 of file htpef.h.

Referenced by htpefimports_init().


Function Documentation

bool pef_addr_is_valid pef_section_headers section_headers,
PEFAddress  addr
 

Definition at line 205 of file htpef.cc.

References PEFAddress::a32, pef_section_headers::count, pef_valid_section(), pef_section_headers::sheaders, and UINT.

bool pef_addr_to_ofs pef_section_headers section_headers,
PEFAddress  addr,
dword *  ofs
 

Definition at line 177 of file htpef.cc.

References PEFAddress::a32, pef_section_headers::count, pef_phys_and_mem_section(), pef_section_headers::sheaders, and UINT.

Referenced by PEFAnalyser::addressToFileofs().

bool pef_addr_to_section pef_section_headers section_headers,
PEFAddress  addr,
int *  section
 

Definition at line 191 of file htpef.cc.

References PEFAddress::a32, pef_section_headers::count, pef_valid_section(), pef_section_headers::sheaders, and UINT.

Referenced by PEFAnalyser::getSegmentNameByAddress(), and PEFAnalyser::validAddress().

bool pef_ofs_to_addr pef_section_headers section_headers,
dword  ofs,
PEFAddress addr
 

Definition at line 222 of file htpef.cc.

References PEFAddress::a32, pef_section_headers::count, pef_phys_and_mem_section(), pef_section_headers::sheaders, and UINT.

Referenced by PEFAnalyser::fileofsToAddress().

bool pef_ofs_to_section pef_section_headers section_headers,
dword  ofs,
dword *  section
 

bool pef_phys_and_mem_section PEF_SECTION_HEADER s  ) 
 

Definition at line 167 of file htpef.cc.

Referenced by htpefimage_init(), pef_addr_to_ofs(), and pef_ofs_to_addr().

bool pef_valid_section PEF_SECTION_HEADER s  ) 
 

Definition at line 172 of file htpef.cc.

Referenced by pef_addr_is_valid(), pef_addr_to_section(), and pef_ofs_to_section().


Variable Documentation

format_viewer_if htpef_if
 

Definition at line 44 of file htpef.h.


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