Binding a TSR to a VxD (74516)
The information in this article applies to:
- Microsoft Windows Device Development Kit (DDK) for Windows 3.0
- Microsoft Windows Device Development Kit (DDK) for Windows 3.1
This article was previously published under Q74516 SUMMARY
Note: This article assumes familiarity with the Interrupt 2FH Call-Out
Interface defined by the Microsoft Windows enhanced mode. For information
on the Interrupt 2FH interface, refer to Appendix C of the "Microsoft
Windows Device Driver Kit: Device Driver Adaptation Guide" for Windows 3.1
and Appendix D of the "Microsoft Windows Device Development Kit Virtual
Device Adaptation Guide" for Windows 3.0.
A terminate-and-stay-resident program (TSR) that loads a virtual device
(VxD) when Windows enhanced mode starts must specify the fully-qualified
filename to the virtual device file. This may not be convenient for end
users because the virtual device file must be placed at a fixed place on
the disk.
It is better to combine the TSR and the VxD together when the VxD is built
because the TSR can obtain the fully-qualified filename from MS-DOS and
provide the name to Windows at startup. The final product is one EXE file
that holds both the TSR and the VxD. The TSR is the stub program with the
VxD appended as an extended part of the EXE file. This article describes
the steps necessary to perform this binding.
Please note, the binding method does not work if the TSR is in binary (COM)
format rather than EXE format. The TSR filename extension (EXE or COM) is
irrelevant. Therefore, while the TSR must be built in EXE format, the
filename may have either the EXE or the COM extension, as desired.
The technique described here is used by the "Loadhi" program that deals
with EMM drivers. However, that program is too involved to be used as an
example here to demonstrate the binding process.
| Modification Type: | Minor | Last Reviewed: | 7/21/2004 |
|---|
| Keywords: | KB74516 |
|---|
|