DisableKey

Disables a key on the specified keyboard plane.

Syntax

HRESULT DisableKey(
    BYTE plane,
    BYTE page,
    BYTE usage
);

Parameters

plane
Indicates the plane (Normal, Orange, or Green) whose key definition is targeted.

page
Page value needed to uniquely identify the key. Always set to 0x07.

usage
Usage value needed to uniquely identify the key.

Return Values

S_OK
The function succeeded.

Other
The function failed. Use the Microsoft errlook.exe utility to determine the meaning of this value.

Remarks

If the key identified by page and usage was not previously defined, this function does nothing.

More Information

KBDTools Functions