Knowledge Base

BUG: GetKeyNameText Fails When Rebuilding Keyboard DLLs

PSS ID Number: 201134

Article Last Modified on 10/20/2003


The information in this article applies to:


This article was previously published under Q201134

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 that this is a problem in the Microsoft products that are listed at the beginning of this article.

Keywords: kbfix kbInput kbKMode kbprb KB201134
Technology: kbAudDeveloper kbSDKSearch kbWin32DDKNTSearch kbWin32DDKSearch kbWin32SDKSearch kbWin32sSearch kbWinDDKSearch