Microsoft KB Archive/201134

{|
 * width="100%"|

BUG: GetKeyNameText Fails When Rebuilding Keyboard DLLs

 * }

Q201134

-

The information in this article applies to:


 * Microsoft Win32 Device Driver Kit (DDK) for Windows NT
 * Microsoft Win32 Software Development Kit (SDK)

-

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 that are listed at the beginning of this article.

Additional query words:

Keywords : kbDDK kbInput kbKMode kbOSWinNT400

Issue type : kbprb

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWinDDKSearch kbWin32sSearch kbWin32DDKSearch kbWin32DDKNTSearch