User32SwapMouseButton Method

Reverses or restores the meaning of the left and right mouse buttons.

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", ExactSpelling = true)]
public static bool SwapMouseButton(
	bool swap
)

Parameters

swap  Boolean
If this parameter is , the left button generates right-button messages and the right button generates left-button messages.

If this parameter is , the buttons are restored to their original meanings.

Return Value

Boolean
If the meaning of the mouse buttons was reversed previously, before the function was called, the return value is .

If the meaning of the mouse buttons was not reversed, the return value is .

Remarks

See Also