Creates an XML file with the all default definitions for the selected embedded or attached keyboard.
HRESULT ExportDefaultKeysEx( BYTE keyboard, TCHAR* fileName, TCHAR* str, size_t * strLen );
keyboard
Indicates the keyboard to be used for this operation:
fileName
NULL or a pointer to a string containing the file name of the file to be generated. See the Remarks for more information.
str
NULL, or may receive the generated file as a string. See the Remarks for more information.
strLen
Length of the string buffer in which to put the XML key definitions, or may receive the length of the string needed, or may be ignored. See the Remarks for more information.
S_OK
The function succeeded.
Other
The function failed. Use the Microsoft errlook.exe utility to determine the meaning of this value.
If fileName is not null, the xml file is created with this name. If fileName is NULL, str is NULL, and len is not NULL when the function is called, the length of the string (including the terminating NULL character) needed to contain the default key definitions is returned in len.
If str is not NULL, and len is non-zero, the XML file with the default key definitions is copied into str.
If more than one external keyboard is attached to the computer, call GetKeyboardIDEx to return the unique identifier for each attached keyboard.