#[repr(C)]pub struct _module_names_t {
pub module_name: *const c_char,
pub file_name: *const c_char,
pub exe_name: *const c_char,
pub rsrc_name: *const c_char,
}Expand description
Holds the names of a module. This structure contains multiple fields corresponding to different sources of a module name. Note that some of these names may not exist for certain modules. It is highly likely, however, that at least one name is available. Use dr_module_preferred_name() on the parent _module_data_t to get the preferred name of the module.
Fields§
§module_name: *const c_char< On windows this name comes from the PE header exports section (NULL if the module has no exports section). On Linux the name will come from the ELF DYNAMIC program header (NULL if the module has no SONAME entry).
file_name: *const c_char< The file name used to load this module. Note - on Windows this is not always available.
exe_name: *const c_char< If this module is the main executable of this process then this is the executable name used to launch the process (NULL for all other modules).
rsrc_name: *const c_char< The internal name given to the module in its resource section. Will be NULL if the module has no resource section or doesn’t set this field within it.
Trait Implementations§
Source§impl Clone for _module_names_t
impl Clone for _module_names_t
Source§fn clone(&self) -> _module_names_t
fn clone(&self) -> _module_names_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for _module_names_t
impl Debug for _module_names_t
impl Copy for _module_names_t
Auto Trait Implementations§
impl Freeze for _module_names_t
impl RefUnwindSafe for _module_names_t
impl !Send for _module_names_t
impl !Sync for _module_names_t
impl Unpin for _module_names_t
impl UnsafeUnpin for _module_names_t
impl UnwindSafe for _module_names_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more