GetKeyboardID

Gets the unique ID for the active keyboard.

Syntax

KBDTools_API HRESULT GetKeyboardID(
TCHAR* str,
DWORD * len
);

Parameters

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.

More Information

KBDTools Functions