GetKeyboardIDEx

Gets the unique ID for the selected embedded or attached keyboard.

Syntax

HRESULT GetKeyboardIDEx(
    BYTE keyboard,
TCHAR* str,
DWORD * len
);

Parameters

keyboard
Indicates the keyboard to be used for this operation:

str
Pointer in memory to retrieve the ID string.

len
Length of memory buffer pointer to str.

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

When you call this function, it returns the unique keyboard ID in the form "model/idnum" or similar.

If str is NULL, then len is returned with the length needed to store the ID string.

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

More Information

KBDTools Functions