SAMPLE: SetKBD.exe Dynamically Loads Keyboard DLL

ID: Q71224

The information in this article applies to:

SUMMARY

SetKBD.exe is a sample that dynamically loads a new keyboard dynamic-link library (DLL) by altering the "keyboard.dll=" setting in the "[keyboard]" section of the System.ini configuration file. By calling the NewTable function in the keyboard driver, SetKBD.exe loads the new keyboard DLL and sets the keyboard driver to reflect this new DLL. SetKBD.exe also obtains and displays the current settings of the physical keyboard type and subtype, but does not change them. SetKBD.exe obtains these values by calling the GetKeyboardType function.

The Readme.txt file in the \Keyboard directory of the Microsoft Windows Device Development Kit (DDK) version 3.0 refers to the SetKBD.exe application. However, this application is not included in the DDK distribution. This application is available for download from the Microsoft Software Library.

MORE INFORMATION

The following file is available for download from the Microsoft Software Library:

 ~ SetKBD.exe (size: 20949 bytes) 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services

The specification of SetKBD.exe differs from that in the Readme.txt file of the DDK because SetKBD.exe does not change the settings of the physical keyboard. On many systems, changing the physical keyboard settings (without actually changing the physical keyboard) might hang the system. If it is necessary to physically change keyboards, the Windows Setup program handles this sufficiently.

Additional query words: Keywords : kbfile kbsample

Last Reviewed: July 26, 1998