User32CallNextHookEx(IntPtr, Int32, IntPtr, MouseLowLevelHookStruct) Method

Passes the hook information to the next hook procedure in the current hook chain.

A hook procedure can call this function either before or after processing the hook information.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll")]
public static IntPtr CallNextHookEx(
	IntPtr hhk,
	int nCode,
	IntPtr wParam,
	in MouseLowLevelHookStruct refLParam
)

Parameters

hhk  IntPtr
This parameter is ignored.
nCode  Int32
The hook code passed to the current hook procedure.

The next hook procedure uses this code to determine how to process the hook information.

wParam  IntPtr
The wParam value passed to the current hook procedure.

The meaning of this parameter depends on the type of hook associated with the current hook chain.

refLParam  MouseLowLevelHookStruct
The lParam value passed to the current hook procedure.

The meaning of this parameter depends on the type of hook associated with the current hook chain.

Return Value

IntPtr
This value is returned by the next hook procedure in the chain.

The current hook procedure must also return this value.

The meaning of the return value depends on the hook type.

For more information, see the descriptions of the individual hook procedures.

Remarks

See Also