pub struct Dbghelp {
Show 13 fields dll: *mut c_void, SymGetOptions: usize, SymSetOptions: usize, SymInitializeW: usize, SymCleanup: usize, StackWalk64: usize, SymFunctionTableAccess64: usize, SymGetModuleBase64: usize, SymFromAddrW: usize, SymGetLineFromAddrW64: usize, StackWalkEx: usize, SymFromInlineContextW: usize, SymGetLineFromInlineContextW: usize,
}

Fields§

§dll: *mut c_void

The loaded DLL for dbghelp.dll

§SymGetOptions: usize§SymSetOptions: usize§SymInitializeW: usize§SymCleanup: usize§StackWalk64: usize§SymFunctionTableAccess64: usize§SymGetModuleBase64: usize§SymFromAddrW: usize§SymGetLineFromAddrW64: usize§StackWalkEx: usize§SymFromInlineContextW: usize§SymGetLineFromInlineContextW: usize

Implementations§

source§

impl Dbghelp

source

fn ensure_open(&mut self) -> Result<(), ()>

Attempts to open dbghelp.dll. Returns success if it works or error if LoadLibraryW fails.

Panics if library is already loaded.

source

pub fn SymGetOptions(&mut self) -> Option<unsafe extern "system" fn() -> u32>

source

pub fn SymSetOptions( &mut self ) -> Option<unsafe extern "system" fn(_: u32) -> u32>

source

pub fn SymInitializeW( &mut self ) -> Option<unsafe extern "system" fn(_: *mut c_void, _: *const u16, _: i32) -> i32>

source

pub fn SymCleanup( &mut self ) -> Option<unsafe extern "system" fn(_: *mut c_void) -> i32>

source

pub fn StackWalk64( &mut self ) -> Option<unsafe extern "system" fn(_: u32, _: *mut c_void, _: *mut c_void, _: *mut STACKFRAME64, _: *mut c_void, _: Option<unsafe extern "system" fn(hProcess: *mut c_void, qwBaseAddress: u64, lpBuffer: *mut c_void, nSize: u32, lpNumberOfBytesRead: *mut u32) -> i32>, _: Option<unsafe extern "system" fn(ahProcess: *mut c_void, AddrBase: u64) -> *mut c_void>, _: Option<unsafe extern "system" fn(hProcess: *mut c_void, Address: u64) -> u64>, _: Option<unsafe extern "system" fn(hProcess: *mut c_void, hThread: *mut c_void, lpaddr: *mut ADDRESS64) -> u64>) -> i32>

source

pub fn SymFunctionTableAccess64( &mut self ) -> Option<unsafe extern "system" fn(_: *mut c_void, _: u64) -> *mut c_void>

source

pub fn SymGetModuleBase64( &mut self ) -> Option<unsafe extern "system" fn(_: *mut c_void, _: u64) -> u64>

source

pub fn SymFromAddrW( &mut self ) -> Option<unsafe extern "system" fn(_: *mut c_void, _: u64, _: *mut u64, _: *mut SYMBOL_INFOW) -> i32>

source

pub fn SymGetLineFromAddrW64( &mut self ) -> Option<unsafe extern "system" fn(_: *mut c_void, _: u64, _: *mut u32, _: *mut IMAGEHLP_LINEW64) -> i32>

source

pub fn StackWalkEx( &mut self ) -> Option<unsafe extern "system" fn(_: u32, _: *mut c_void, _: *mut c_void, _: *mut STACKFRAME_EX, _: *mut c_void, _: Option<unsafe extern "system" fn(hProcess: *mut c_void, qwBaseAddress: u64, lpBuffer: *mut c_void, nSize: u32, lpNumberOfBytesRead: *mut u32) -> i32>, _: Option<unsafe extern "system" fn(ahProcess: *mut c_void, AddrBase: u64) -> *mut c_void>, _: Option<unsafe extern "system" fn(hProcess: *mut c_void, Address: u64) -> u64>, _: Option<unsafe extern "system" fn(hProcess: *mut c_void, hThread: *mut c_void, lpaddr: *mut ADDRESS64) -> u64>, _: u32) -> i32>

source

pub fn SymFromInlineContextW( &mut self ) -> Option<unsafe extern "system" fn(_: *mut c_void, _: u64, _: u32, _: *mut u64, _: *mut SYMBOL_INFOW) -> i32>

source

pub fn SymGetLineFromInlineContextW( &mut self ) -> Option<unsafe extern "system" fn(_: *mut c_void, _: u64, _: u32, _: u64, _: *mut u32, _: *mut IMAGEHLP_LINEW64) -> i32>

source

fn symbol(&self, symbol: &[u8]) -> Option<usize>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.