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

htpe.cc File Reference

#include "log.h"
#include "htendian.h"
#include "htnewexe.h"
#include "htpe.h"
#include "htpehead.h"
#include "htpeexp.h"
#include "htpeil.h"
#include "htpeimp.h"
#include "htpedimp.h"
#include "htpeimg.h"
#include "htperes.h"
#include "stream.h"
#include "tools.h"
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

bool pe_rva_to_ofs (pe_section_headers *section_headers, RVA rva, FILEOFS *ofs)
bool pe_rva_to_section (pe_section_headers *section_headers, RVA rva, int *section)
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_ofs_is_valid (pe_section_headers *section_headers, FILEOFS ofs)
bool pe_section_name_to_section (pe_section_headers *section_headers, const char *name, int *section)

Variables

format_viewer_if htpe_if


Function Documentation

bool pe_ofs_is_valid pe_section_headers section_headers,
FILEOFS  ofs
 

Definition at line 339 of file htpe.cc.

References FILEOFS, pe_ofs_to_rva(), and RVA.

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
 

Initial value:

 {
        htpe_init,
        0
}

Definition at line 63 of file htpe.cc.


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