#[repr(C)]pub enum HookStatus {
Show 14 variants
Unknown = -1,
Ok = 0,
ErrorAlreadyInitialized = 1,
ErrorNotInitialized = 2,
ErrorAlreadyCreated = 3,
ErrorNotCreated = 4,
ErrorEnabled = 5,
ErrorDisabled = 6,
ErrorNotExecutable = 7,
ErrorUnsupportedFunction = 8,
ErrorMemoryAlloc = 9,
ErrorMemoryProtect = 10,
ErrorModuleNotFound = 11,
ErrorFunctionNotFound = 12,
}Expand description
MinHook error codes.
Variants§
Unknown = -1
Unknown error. Should not be returned.
Ok = 0
Successful.
ErrorAlreadyInitialized = 1
MinHook is already initialized.
ErrorNotInitialized = 2
MinHook is not initialized yet, or already uninitialized.
ErrorAlreadyCreated = 3
The hook for the specified target function is already created.
ErrorNotCreated = 4
The hook for the specified target function is not created yet.
ErrorEnabled = 5
The hook for the specified target function is already enabled.
ErrorDisabled = 6
The hook for the specified target function is not enabled yet, or already disabled.
ErrorNotExecutable = 7
The specified pointer is invalid. It points the address of non-allocated and/or non-executable region.
ErrorUnsupportedFunction = 8
The specified target function cannot be hooked.
ErrorMemoryAlloc = 9
Failed to allocate memory.
ErrorMemoryProtect = 10
Failed to change the memory protection.
ErrorModuleNotFound = 11
The specified module is not loaded.
ErrorFunctionNotFound = 12
The specified function is not found.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for HookStatus
impl AsRef<str> for HookStatus
Source§impl Clone for HookStatus
impl Clone for HookStatus
Source§fn clone(&self) -> HookStatus
fn clone(&self) -> HookStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HookStatus
impl Debug for HookStatus
Source§impl<'de> Deserialize<'de> for HookStatus
impl<'de> Deserialize<'de> for HookStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for HookStatus
impl Display for HookStatus
Source§impl<'_derivative_strum> From<&'_derivative_strum HookStatus> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum HookStatus> for &'static str
Source§fn from(x: &'_derivative_strum HookStatus) -> &'static str
fn from(x: &'_derivative_strum HookStatus) -> &'static str
Converts to this type from the input type.
Source§impl From<HookStatus> for &'static str
impl From<HookStatus> for &'static str
Source§fn from(x: HookStatus) -> &'static str
fn from(x: HookStatus) -> &'static str
Converts to this type from the input type.
Source§impl Hash for HookStatus
impl Hash for HookStatus
Source§impl IntoEnumIterator for HookStatus
impl IntoEnumIterator for HookStatus
type Iterator = HookStatusIter
fn iter() -> HookStatusIter ⓘ
Source§impl Ord for HookStatus
impl Ord for HookStatus
Source§fn cmp(&self, other: &HookStatus) -> Ordering
fn cmp(&self, other: &HookStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HookStatus
impl PartialEq for HookStatus
Source§impl PartialOrd for HookStatus
impl PartialOrd for HookStatus
Source§impl Serialize for HookStatus
impl Serialize for HookStatus
Source§impl VariantNames for HookStatus
impl VariantNames for HookStatus
impl Copy for HookStatus
impl Eq for HookStatus
impl StructuralPartialEq for HookStatus
Auto Trait Implementations§
impl Freeze for HookStatus
impl RefUnwindSafe for HookStatus
impl Send for HookStatus
impl Sync for HookStatus
impl Unpin for HookStatus
impl UnwindSafe for HookStatus
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
Mutably borrows from an owned value. Read more