Chapter 6. Initialization and Cleanup Routines

< BACK  NEXT >
[oR]

Chapter 6. Initialization and Cleanup Routines

CHAPTER OBJECTIVES

  • Writing a DriverEntry Routine

  • Code Example: Driver Initialization

  • Writing Reinitialize Routines

  • Writing an Unload Routine

  • Code Example: Driver Unload

  • Writing Shutdown Routines

  • Testing the Driver

  • Summary

Everything has to start somewhere. In the case of a Windows 2000 kernel-mode driver, the starting point is a function called DriverEntry. This chapter shows how to write a DriverEntry routine along with various other pieces of initialization and cleanup code. At the conclusion of this chapter, a minimal driver is produced that can actually load into the system.

< BACK  NEXT >


The Windows 2000 Device Driver Book(c) A Guide for Programmers
The Windows 2000 Device Driver Book: A Guide for Programmers (2nd Edition)
ISBN: 0130204315
EAN: 2147483647
Year: 2000
Pages: 156

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net