Skip to main content

ShellHookMessage

Enum ShellHookMessage 

Source
pub enum ShellHookMessage {
Show 18 variants WindowCreated(HWND), WindowDestroyed(HWND), ActivateShellWindow, WindowActivated(HWND), RudeAppActivated(HWND), GetMinRect(HWND, RECT), TaskMan(LPARAM), Language(HWND), SysMenu(LPARAM), EndTask(HWND), AccessibilityState(LPARAM), Redraw(HWND), Flash(HWND), AppCommand(LPARAM), WindowReplaced(HWND), WindowReplacing(HWND), MonitorChanged(HWND), Unknown(WPARAM, LPARAM),
}
Expand description

Shell hook message variants.

These correspond to the shell hook messages sent via [RegisterShellHookWindow].

Ref:

Variants§

§

WindowCreated(HWND)

A top-level, unowned window has been created. The window exists when the system calls this hook.

A handle to the window being created.

§

WindowDestroyed(HWND)

A top-level, unowned window is about to be destroyed. The window still exists when the system calls this hook.

A handle to the top-level window being destroyed.

§

ActivateShellWindow

The shell should activate its main window.

§

WindowActivated(HWND)

The activation has changed to a different top-level, unowned window.

A handle to the activated window.

§

RudeAppActivated(HWND)

The activation has changed to a different top-level, unowned window in full-screen mode.

A handle to the activated window.

Ref: c# - Does anybody know what means ShellHook message HSHELL_RUDEAPPACTIVATED? - Stack Overflow

§

GetMinRect(HWND, RECT)

A window is being minimized or maximized. The system needs the coordinates of the minimized rectangle for the window.

  • A handle to the minimized or maximized window.
  • A pointer to a RECT structure.
§

TaskMan(LPARAM)

The user has selected the task list. A shell application that provides a task list should return TRUE to prevent Windows from starting its task list.

The param can be ignored.

§

Language(HWND)

Keyboard language was changed or a new keyboard layout was loaded.

  • A handle to the window.
  • A handle to a keyboard layout.

May require DLL hook.

§

SysMenu(LPARAM)

May require DLL hook.

§

EndTask(HWND)

A handle to the window that should be forced to exit.

§

AccessibilityState(LPARAM)

The accessibility state has changed.

Indicates which accessibility feature has changed state. This value is one of the following: ACCESS_FILTERKEYS, ACCESS_MOUSEKEYS, or ACCESS_STICKYKEYS.

May require DLL hook.

§

Redraw(HWND)

The title of a window in the task bar has been redrawn.

A handle to the window that needs to be redrawn.

§

Flash(HWND)

A handle to the window that needs to be flashed.

§

AppCommand(LPARAM)

The user completed an input event (for example, pressed an application command button on the mouse or an application command key on the keyboard), and the application did not handle the [WM_APPCOMMAND] message generated by that input.

  • The [APPCOMMAND] which has been unhandled by the application or other hooks.
§

WindowReplaced(HWND)

A top-level window is being replaced. The window exists when the system calls this hook.

A handle to the window being replaced.

§

WindowReplacing(HWND)

A handle to the window replacing the top-level window.

§

MonitorChanged(HWND)

A handle to the window that moved to a different monitor.

§

Unknown(WPARAM, LPARAM)

Unknown shell hook message.

Trait Implementations§

Source§

impl Clone for ShellHookMessage

Source§

fn clone(&self) -> ShellHookMessage

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ShellHookMessage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<(WPARAM, LPARAM)> for ShellHookMessage

Source§

fn from(value: (WPARAM, LPARAM)) -> Self

Converts to this type from the input type.
Source§

impl Copy for ShellHookMessage

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DropFlavorWrapper<T> for T

Source§

type Flavor = MayDrop

The DropFlavor that wraps T into Self
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, W> HasTypeWitness<W> for T
where W: MakeTypeWitness<Arg = T>, T: ?Sized,

Source§

const WITNESS: W = W::MAKE

A constant of the type witness
Source§

impl<T> Identity for T
where T: ?Sized,

Source§

const TYPE_EQ: TypeEq<T, <T as Identity>::Type> = TypeEq::NEW

Proof that Self is the same type as Self::Type, provides methods for casting between Self and Self::Type.
Source§

type Type = T

The same type as Self, used to emulate type equality bounds (T == U) with associated type equality constraints (T: Identity<Type = U>).
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more