DisableKeyEx

Disables a key on the specified plane for a selected embedded or attached keyboard.

Syntax

HRESULT DisableKeyEx(
    BYTE keyboard,
    BYTE plane,
    BYTE page,
    BYTE usage
);

Parameters

keyboard
Indicates the keyboard to be affected by this operation:

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.

If more than one external keyboard is attached to the computer, call GetKeyboardIDEx to return the unique identifier for each attached keyboard.

More Information

KBDTools Functions