Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.76 KB

File metadata and controls

59 lines (42 loc) · 1.76 KB
title description MSHAttr ms.assetid author ms.author ms.service ms.subservice ms.date ms.topic
WEKF_Scancode.Add
WEKF_Scancode.Add
PreferredSiteName:MSDN
PreferredLib:/library/windows/hardware
cb5ea693-e871-4338-957a-f78f87a932ba
TerryWarwick
twarwick
windows-iot
iot
05/20/2024
article

WEKF_Scancode.Add

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 Edition Supported
Windows Home No
Windows Pro No
Windows Enterprise Yes
Windows Education Yes
Windows IoT Enterprise Yes

Related topics