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

htpe.h File Reference

#include "formats.h"
#include "pestruct.h"
#include "htpeexp.h"
#include "htpeil.h"
#include "htpeimp.h"
#include "htpedimp.h"

Go to the source code of this file.

Classes

class  ht_pe
struct  ht_pe_shared_data
struct  pe_section_headers

Defines

#define DESC_PE   "pe - win32 portable exe"
#define DESC_PE_HEADER   "pe/header"
#define DESC_PE_IMPORTS   "pe/imports"
#define DESC_PE_DIMPORTS   "pe/delay-imports"
#define DESC_PE_EXPORTS   "pe/exports"
#define DESC_PE_RESOURCES   "pe/resources"
#define DESC_PE_IMAGE   "pe/image"
#define DESC_PE_IL   "pe/il"
#define ATOM_PE_MACHINES   0x50450000
#define ATOM_PE_MACHINES_STR   "50450000"
#define ATOM_PE_OPTIONAL_MAGICS   0x50450001
#define ATOM_PE_OPTIONAL_MAGICS_STR   "50450001"
#define ATOM_PE_SUBSYSTEMS   0x50450002
#define ATOM_PE_SUBSYSTEMS_STR   "50450002"
#define ATOM_PE_CHARACTERISTICS   0x50450003
#define ATOM_PE_CHARACTERISTICS_STR   "50450003"
#define ATOM_PE_DLL_CHARACTERISTICS   0x50450004
#define ATOM_PE_DLL_CHARACTERISTICS_STR   "50450004"
#define ATOM_PE_SECTION_CHARACTERISTICS   0x50450005
#define ATOM_PE_SECTION_CHARACTERISTICS_STR   "50450005"

Functions

bool pe_rva_to_section (pe_section_headers *section_headers, RVA rva, int *section)
bool pe_rva_to_ofs (pe_section_headers *section_headers, RVA rva, FILEOFS *ofs)
bool pe_rva_is_valid (pe_section_headers *section_headers, RVA rva)
bool pe_rva_is_physical (pe_section_headers *section_headers, RVA rva)
bool pe_ofs_to_rva (pe_section_headers *section_headers, FILEOFS ofs, RVA *rva)
bool pe_ofs_to_section (pe_section_headers *section_headers, FILEOFS ofs, int *section)
bool pe_ofs_to_rva_and_section (pe_section_headers *section_headers, FILEOFS ofs, RVA *rva, int *section)
bool pe_section_name_to_section (pe_section_headers *section_headers, const char *name, int *section)

Variables

format_viewer_if htpe_if


Define Documentation

#define ATOM_PE_CHARACTERISTICS   0x50450003
 

Definition at line 49 of file htpe.h.

#define ATOM_PE_CHARACTERISTICS_STR   "50450003"
 

Definition at line 50 of file htpe.h.

#define ATOM_PE_DLL_CHARACTERISTICS   0x50450004
 

Definition at line 52 of file htpe.h.

#define ATOM_PE_DLL_CHARACTERISTICS_STR   "50450004"
 

Definition at line 53 of file htpe.h.

#define ATOM_PE_MACHINES   0x50450000
 

Definition at line 40 of file htpe.h.

#define ATOM_PE_MACHINES_STR   "50450000"
 

Definition at line 41 of file htpe.h.

#define ATOM_PE_OPTIONAL_MAGICS   0x50450001
 

Definition at line 43 of file htpe.h.

#define ATOM_PE_OPTIONAL_MAGICS_STR   "50450001"
 

Definition at line 44 of file htpe.h.

#define ATOM_PE_SECTION_CHARACTERISTICS   0x50450005
 

Definition at line 55 of file htpe.h.

#define ATOM_PE_SECTION_CHARACTERISTICS_STR   "50450005"
 

Definition at line 56 of file htpe.h.

#define ATOM_PE_SUBSYSTEMS   0x50450002
 

Definition at line 46 of file htpe.h.

#define ATOM_PE_SUBSYSTEMS_STR   "50450002"
 

Definition at line 47 of file htpe.h.

#define DESC_PE   "pe - win32 portable exe"
 

Definition at line 31 of file htpe.h.

Referenced by ht_pe::init().

#define DESC_PE_DIMPORTS   "pe/delay-imports"
 

Definition at line 34 of file htpe.h.

#define DESC_PE_EXPORTS   "pe/exports"
 

Definition at line 35 of file htpe.h.

Referenced by ht_pe_export_viewer::init().

#define DESC_PE_HEADER   "pe/header"
 

Definition at line 32 of file htpe.h.

#define DESC_PE_IL   "pe/il"
 

Definition at line 38 of file htpe.h.

#define DESC_PE_IMAGE   "pe/image"
 

Definition at line 37 of file htpe.h.

#define DESC_PE_IMPORTS   "pe/imports"
 

Definition at line 33 of file htpe.h.

#define DESC_PE_RESOURCES   "pe/resources"
 

Definition at line 36 of file htpe.h.


Function Documentation

bool pe_ofs_to_rva pe_section_headers section_headers,
FILEOFS  ofs,
RVA rva
 

Definition at line 302 of file htpe.cc.

References FILEOFS, RVA, pe_section_headers::section_count, pe_section_headers::sections, and UINT.

Referenced by PEAnalyser::fileofsToAddress(), pe_ofs_is_valid(), and pe_ofs_to_rva_and_section().

bool pe_ofs_to_rva_and_section pe_section_headers section_headers,
FILEOFS  ofs,
RVA rva,
int *  section
 

Definition at line 330 of file htpe.cc.

References FILEOFS, pe_ofs_to_rva(), pe_ofs_to_section(), and RVA.

bool pe_ofs_to_section pe_section_headers section_headers,
FILEOFS  ofs,
int *  section
 

Definition at line 316 of file htpe.cc.

References FILEOFS, pe_section_headers::section_count, pe_section_headers::sections, and UINT.

Referenced by pe_ofs_to_rva_and_section().

bool pe_rva_is_physical pe_section_headers section_headers,
RVA  rva
 

Definition at line 285 of file htpe.cc.

References RVA, pe_section_headers::section_count, pe_section_headers::sections, and UINT.

Referenced by PEAnalyser::validAddress().

bool pe_rva_is_valid pe_section_headers section_headers,
RVA  rva
 

Definition at line 272 of file htpe.cc.

References MAX, RVA, pe_section_headers::section_count, pe_section_headers::sections, and UINT.

Referenced by PEAnalyser::getSegmentNameByAddress().

bool pe_rva_to_ofs pe_section_headers section_headers,
RVA  rva,
FILEOFS ofs
 

Definition at line 244 of file htpe.cc.

References FILEOFS, RVA, pe_section_headers::section_count, pe_section_headers::sections, and UINT.

Referenced by PEAnalyser::addressToFileofs(), ht_pe::loc_enum_next(), and ht_pe_header_viewer::ref_sel().

bool pe_rva_to_section pe_section_headers section_headers,
RVA  rva,
int *  section
 

Definition at line 258 of file htpe.cc.

References MAX, RVA, pe_section_headers::section_count, pe_section_headers::sections, and UINT.

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

bool pe_section_name_to_section pe_section_headers section_headers,
const char *  name,
int *  section
 

Definition at line 349 of file htpe.cc.

References COFF_SIZEOF_SHORT_NAME, MIN, pe_section_headers::section_count, pe_section_headers::sections, and UINT.


Variable Documentation

format_viewer_if htpe_if
 

Definition at line 58 of file htpe.h.


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