VHook86D: A VxD that Hooks Interrupt 2Fh in V86 Mode

VHook86D is a virtual device (VxD) that demonstrates the use of Hook_V86_Int_Chain, one of the Virtual Machine Interrupt and Callback Services. VHook86D exists for demonstration purposes only; the VxD adversely affects system performance because it hooks Interrupt 2Fh and prints Trace_Out messages to the debugging monitor.

To install the VxD in your machine, place the following line in the [386Enh] section of your SYSTEM.INI file:

DEVICE=VHOOK86D.386

Place VHOOK86D.386 in your Windows SYSTEM directory. Restart Microsoft(R) Windows(TM), and watch the debugging display (which must be connected to COM1). Because of all the Trace_Out messages, the system will c-r-a-w-l.

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."

VHook86D was built and tested under Microsoft Windows version 3.1.

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

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.