Table of contents
TOC
Collapse the table of content
Expand the table of content

WEKF_Scancode.Add

Last Updated: 12/12/2016

This method adds a new custom scan code combination and enables Keyboard Filter to block the new combination.

Syntax

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

Parameters

Modifers
The modifier keys that are part of the key combination to block.

Scancode
The hardware scan code of the key to block.

Return Value

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

Remarks

WEKF_Scancode.Add creates a new WEKF_Scancode object and sets the Enabled property of the new object to true.

If a WEKF_Scancode object already exists with same Modifiers and Scancode properties, then WEKF_Scancode.Add returns an error code and does not create a new object or modify any properties of the existing object. If the existing WEKF_Scancode object has the Enabled property set to false, Keyboard Filter does not block the scan code.

Requirements

Windows EditionSupported
Windows 10 HomeNo
Windows 10 ProNo
Windows 10 EnterpriseYes
Windows 10 EducationYes

WEKF_Scancode

Keyboard Filter

Send comments about this topic to Microsoft

© 2017 Microsoft