Gets the unique ID for the selected embedded or attached keyboard.
HRESULT GetKeyboardIDEx( BYTE keyboard,
TCHAR* str,
DWORD * len
);
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.
S_OK
The function succeeded.
Other
The function failed. Use the Microsoft errlook.exe utility to determine the meaning of this value.
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.