Figure 1.9 Device driver architecture
Device drivers allow developers to create applications that are independent of hardware. In other words, developers do not need to know what hardware a user has in order to create an application. A user , in turn , can add or change hardware in a computer without affecting the program.
Windows uses drivers for components such as:
Depending upon which Windows operating system the driver was designed for, Windows device drivers are classified in two ways: protected-mode and real-mode.
Protected-mode drivers take advantage of the architecture of the 80386 and higher processors' protected mode. A protected-mode driver, also known as a virtual device driver (VxD), allows for faster, shared access to a device. In addition, the Windows operating system can run the 32-bit protected-mode code of a virtual device more efficiently than the 16-bit real-mode code of an MS-DOS device driver.
Although Windows 95 supports real-mode and protected-mode drivers, Windows NT will not support real-mode drivers. Microsoft strongly recommends that you use 32-bit, protected-mode drivers wherever possible.