StartIO.exe Demonstrates Cancel and Cleanup Routines

ID: Q181279


The information in this article applies to:


SUMMARY

The StartIO.exe sample driver demonstrates the functionality of CleanUp and Cancel routines in drivers that use the device object's internal queue for IRPs and StartIO routine.


MORE INFORMATION

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

StartIO.exe
Release Date: Apr-1-1999

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
Q119591 How to Obtain Microsoft Support Files from Online Services

StartIO.exe contains the following files:

This driver provides an example of a minimal driver. Neither it nor the sample programs are intended to be used in a production environment. Rather, they are intended for educative purposes and as a skeleton driver.

Building the Driver and Examples

To compile the device driver:

  1. Start the checked or free build environment MS-DOS box.


  2. Run Build. This invokes the Microsoft make routines, which produce log files called Build.wrn and Build.log. The .wrn file contains warnings that no components have been extracted from certain libraries, even if the build succeeds. If the build succeeds, the driver can be found in the %basedir%\lib\i386\free or %basedir%\lib\i386\checked directory.


  3. Copy the SYS file to %systemroot%\SYSTEM32\DRIVERS directory where all the Windows NT device drivers are stored.


To install the Sample driver, use the REGINI utility to create the entries listed in the .ini file.

Testing

  1. Restart your computer.


  2. Start the driver with "net start".


  3. Run Testapp.


Additional query words:


Keywords          : kbfile kbsample NTDDKKMode 
Version           : winnt:3.5,3.51,4.0
Platform          : winnt 
Issue type        : 

Last Reviewed: April 23, 1999