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

htxbe.h File Reference

#include "formats.h"
#include "xbestruct.h"
#include "htxbeimp.h"

Go to the source code of this file.

Classes

class  ht_xbe
struct  ht_xbe_shared_data
struct  xbe_section_headers

Defines

#define DESC_XBE   "xbe - XBOX executable"
#define DESC_XBE_HEADER   "xbe/header"
#define DESC_XBE_IMAGE   "xbe/image"
#define DESC_XBE_IMPORTS   "xbe/imports"
#define ATOM_XBE_INIT_FLAGS   0x58420000
#define ATOM_XBE_INIT_FLAGS_STR   "58420000"
#define ATOM_XBE_SECTION_FLAGS   0x58420001
#define ATOM_XBE_SECTION_FLAGS_STR   "58420001"
#define ATOM_XBE_MEDIA_FLAGS   0x58420002
#define ATOM_XBE_MEDIA_FLAGS_STR   "58420002"
#define ATOM_XBE_REGION   0x58420003
#define ATOM_XBE_REGION_STR   "58420003"
#define ATOM_XBE_LIBRARY_FLAGS   0x58420004
#define ATOM_XBE_LIBRARY_FLAGS_STR   "58420004"

Functions

bool xbe_rva_to_section (xbe_section_headers *section_headers, RVA rva, int *section)
bool xbe_rva_to_ofs (xbe_section_headers *section_headers, RVA rva, FILEOFS *ofs)
bool xbe_rva_is_valid (xbe_section_headers *section_headers, RVA rva)
bool xbe_rva_is_physical (xbe_section_headers *section_headers, RVA rva)
bool xbe_ofs_to_rva (xbe_section_headers *section_headers, FILEOFS ofs, RVA *rva)
bool xbe_ofs_to_section (xbe_section_headers *section_headers, FILEOFS ofs, int *section)
bool xbe_ofs_to_rva_and_section (xbe_section_headers *section_headers, FILEOFS ofs, RVA *rva, int *section)
bool xbe_section_name_to_section (xbe_section_headers *section_headers, const char *name, int *section)

Variables

format_viewer_if htxbe_if


Define Documentation

#define ATOM_XBE_INIT_FLAGS   0x58420000
 

Definition at line 34 of file htxbe.h.

#define ATOM_XBE_INIT_FLAGS_STR   "58420000"
 

Definition at line 35 of file htxbe.h.

#define ATOM_XBE_LIBRARY_FLAGS   0x58420004
 

Definition at line 46 of file htxbe.h.

#define ATOM_XBE_LIBRARY_FLAGS_STR   "58420004"
 

Definition at line 47 of file htxbe.h.

#define ATOM_XBE_MEDIA_FLAGS   0x58420002
 

Definition at line 40 of file htxbe.h.

#define ATOM_XBE_MEDIA_FLAGS_STR   "58420002"
 

Definition at line 41 of file htxbe.h.

#define ATOM_XBE_REGION   0x58420003
 

Definition at line 43 of file htxbe.h.

#define ATOM_XBE_REGION_STR   "58420003"
 

Definition at line 44 of file htxbe.h.

#define ATOM_XBE_SECTION_FLAGS   0x58420001
 

Definition at line 37 of file htxbe.h.

#define ATOM_XBE_SECTION_FLAGS_STR   "58420001"
 

Definition at line 38 of file htxbe.h.

#define DESC_XBE   "xbe - XBOX executable"
 

Definition at line 28 of file htxbe.h.

Referenced by ht_xbe::init().

#define DESC_XBE_HEADER   "xbe/header"
 

Definition at line 29 of file htxbe.h.

#define DESC_XBE_IMAGE   "xbe/image"
 

Definition at line 30 of file htxbe.h.

#define DESC_XBE_IMPORTS   "xbe/imports"
 

Definition at line 31 of file htxbe.h.


Function Documentation

bool xbe_ofs_to_rva xbe_section_headers section_headers,
FILEOFS  ofs,
RVA rva
 

Definition at line 248 of file htxbe.cc.

References FILEOFS, xbe_section_headers::number_of_sections, RVA, xbe_section_headers::sections, and UINT.

Referenced by XBEAnalyser::fileofsToAddress(), xbe_ofs_is_valid(), and xbe_ofs_to_rva_and_section().

bool xbe_ofs_to_rva_and_section xbe_section_headers section_headers,
FILEOFS  ofs,
RVA rva,
int *  section
 

Definition at line 276 of file htxbe.cc.

References FILEOFS, RVA, xbe_ofs_to_rva(), and xbe_ofs_to_section().

bool xbe_ofs_to_section xbe_section_headers section_headers,
FILEOFS  ofs,
int *  section
 

Definition at line 262 of file htxbe.cc.

References FILEOFS, xbe_section_headers::number_of_sections, xbe_section_headers::sections, and UINT.

Referenced by xbe_ofs_to_rva_and_section().

bool xbe_rva_is_physical xbe_section_headers section_headers,
RVA  rva
 

Definition at line 230 of file htxbe.cc.

References xbe_section_headers::number_of_sections, RVA, xbe_section_headers::sections, and UINT.

Referenced by XBEAnalyser::validAddress().

bool xbe_rva_is_valid xbe_section_headers section_headers,
RVA  rva
 

Definition at line 217 of file htxbe.cc.

References MAX, xbe_section_headers::number_of_sections, RVA, xbe_section_headers::sections, and UINT.

Referenced by XBEAnalyser::getSegmentNameByAddress().

bool xbe_rva_to_ofs xbe_section_headers section_headers,
RVA  rva,
FILEOFS ofs
 

Definition at line 187 of file htxbe.cc.

References FILEOFS, xbe_section_headers::number_of_sections, RVA, xbe_section_headers::sections, and UINT.

Referenced by XBEAnalyser::addressToFileofs().

bool xbe_rva_to_section xbe_section_headers section_headers,
RVA  rva,
int *  section
 

Definition at line 202 of file htxbe.cc.

References MAX, xbe_section_headers::number_of_sections, RVA, xbe_section_headers::sections, and UINT.

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

bool xbe_section_name_to_section xbe_section_headers section_headers,
const char *  name,
int *  section
 

Definition at line 295 of file htxbe.cc.

References xbe_section_headers::number_of_sections, xbe_section_headers::sections, and UINT.


Variable Documentation

format_viewer_if htxbe_if
 

Definition at line 50 of file htxbe.h.


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