BUG: GetKeyNameText Fails When Rebuilding Keyboard DLLs

ID: Q201134


The information in this article applies to:


SYMPTOMS

The function GetKeyNameText() does not return the key name string when using a keyboard DLL that was built in the DDK. This is not a problem with the keyboard DLLs that are shipped with the operating system; rather, this is a problem only when the keyboard DLLs are built with the DDK.


CAUSE

The linker options were not set correctly to include the text strings for the keyboard DLL.


RESOLUTION

Add the following line to the keyboard DLL's SOURCES file:


LINKER_FLAGS = -merge:.edata=.data -merge:.rdata=.data -merge:.text=.data -section:.data,re 


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

Additional query words:


Keywords          : kbDDK kbInput kbKMode kbNTOS400 
Version           : WINDOWS:; winnt:
Platform          : WINDOWS winnt 
Issue type        : kbprb 

Last Reviewed: April 7, 1999