_module_data_t Struct Reference

#include <dr_tools.h>


Data Fields

app_pc end
app_pc entry_point
uint flags
module_names_t names
char * full_path
version_number_t file_version
version_number_t product_version
uint checksum
uint timestamp
size_t module_internal_size
app_pc start
module_handle_t handle


Detailed Description

Holds information about a loaded module.
Note:
On Linux the start address can be cast to an Elf32_Ehdr or Elf64_Ehdr.

On Windows the start address can be cast to an IMAGE_DOS_HEADER for use in finding the IMAGE_NT_HEADER and its OptionalHeader. The OptionalHeader can be used to walk the module sections (among other things). See WINNT.H.

When accessing any memory inside the module (including header fields) user is responsible for guarding against corruption and the possibility of the module being unmapped.


Field Documentation

module checksum from the PE headers

ending address of this module

entry point for this module as specified in the headers

file version number from .rsrc section

Reserved, set to 0

full path to the file backing this module

module_handle for use with dr_get_proc_address()

module internal size (from PE headers SizeOfImage)

struct containing name(s) for this module; use dr_module_preferred_name() to get the preferred name for this module

product version number from .rsrc section

starting address of this module

module timestamp from the PE headers


The documentation for this struct was generated from the following file:

  DynamoRIO API version 2.0.0 --- Thu Apr 22 00:18:20 2010