Testing the Parallel Port Loopback Driver

At this point, a real driver is working, touching real hardware. A tester routine is included with this driver to demonstrate correct functionality and use. It verifies that the driver

  • Sends IRPs from its Dispatch routine to its StartI/O routine.

  • Responds to device interrupts.

  • Transfers data successfully.

  • Completes requests.

  • Manages requests from multiple callers.

On the other hand, this driver is far from complete. It assumes that all data transfer requests complete without error. Simply removing the parallel port loopback connector before starting the test demonstrates this problem—a hung system. Subsequent chapters correct this problem as well as explain and demonstrate the correct way to locate hardware. ...

Get Windows® 2000 Device Driver Book: A Guide for Programmers, Second Edition, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.