WEKF_Scancode.Remove

Supported Editions
✅ IoT Enterprise LTSC
✅ IoT Enterprise
✅ Enterprise LTSC
✅ Enterprise
✅ Education

This method removes a custom scan code key combination, causing Keyboard Filter to stop blocking the removed combination.

Syntax

[Static] uint32 Remove(
    [In] string Modifiers,
    [In] uint16 Scancode
);

Parameters

Modifiers
The modifier keys of the combination to remove.

Scancode
The scan code of the combination to remove.

Return Value

Returns an HRESULT value that indicates WMI non-error constant or a WMI error constant.

Remarks

WEKF_Scancode.Remove removes an existing WEKF_Scancode object. If the object doesn't exist, WEKF_Scancode.Remove returns an error with the value 0x8007007B.

Because this method is static, you can't call it on an object instance, but must instead call it at the class level.