VKXD: A VxD that Simulates the ALT+ENTER Key Combination

VKXD, the virtual keyboard extension device, is a VxD that demonstrates how to write extensions to the virtual keyboard device (VKD).

VKXD extends VKD by letting you use F9 as the ALT+ENTER key combination. To install VKXD, put the file VKXD.386 in your Microsoft(R) Windows(TM) SYSTEM directory, and add the line DEVICE=VKXD.386 to the [386Enh] section of your SYSTEM.INI file. Restart Windows and Voila!--the F9 key switches your MS-DOS(R) applications between full-screen mode and window mode.

Warning: In Windows version 3.1, the ALT+ENTER key combination will cause actions that did not occur in version 3.0 (for example, in the Program Manager, pressing ALT+ENTER when a program icon is selected will bring up the Program Item Properties dialog box). This VxD is given as an example of using VKD services; it is not intended to be a "perfect" implementation of a window-to-full-screen toggle key.

VKXD uses the following VKD services:

VKD_Define_Hot_Key

VKD_Cancel_Hot_Key_State

VKD_Force_Keys

This sample code requires special VxD tools and include files; see the "VxD Tools" and "VxD Include Files" abstracts to copy these files to your development system. For more information on using the Microsoft Windows version 3.1 Device Driver Kit (DDK) files included on this CD, read the technical article "The VxD-Lite Mini-DDK." For more information on virtual device programming, see the DDK "Virtual Device Adaptation Guide.”

VKXD was built and tested under Microsoft Windows version 3.1.

{ewc navigate.dll, ewbutton, /Bcodeview /T"Click to open or copy files in the vkxd project." /C"samples}

THIS TOOL IS NOT SUPPORTED BY MICROSOFT CORPORATION. IT IS PROVIDED "AS IS" BECAUSE WE BELIEVE IT MAY BE USEFUL TO YOU. PLEASE DO NOT CONTACT MICROSOFT PRODUCT SUPPORT SERVICES FOR SUPPORT OR ASSISTANCE SHOULD YOU HAVE PROBLEMS USING THIS TOOL.

READ THE ASSOCIATED DOCUMENTATION, IF ANY, REGARDING THIS TOOL PRIOR TO USING. ANY USE BY YOU OF THE TOOL IS AT YOUR OWN RISK. THE TOOL IS PROVIDED FOR USE "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.