ResetKeyEx

Restores the default definition to a specified key on the selected embedded or attached keyboard.

Syntax

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

Parameters

keyboard
Indicates the keyboard to be used for this operation:

plane
Keyboard plane (Normal, Orange, or Green) for the specified key definition.

page
Page number defining the key.

usage
Usage number defining 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 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