|
Writing Windows WDM Device DriversChapter 24 gives a summary of the PC 99 specification — the hardware and software that should be provided on new Windows computers. Finally, the Glossary explains some of the many acronyms you come across when writing drivers. Win32 Program Interface Before I go any further, it is worth looking at how Win32 programs call a device driver. The Win32 specification has various implications for driver writers. Basic I/O To Win32 programmers, a device is accessed as if it were a file, using the functions listed in Table 1.2. As well as open, read, write, and close routines, DeviceIoControl provides a driver with the option of providing any special functionality. Consult your Win32 documentation for full details of these functions. Table 1.2 Win32 Program Interface Win32 function Action CreateFile Open device file CloseHandle Close device file ReadFile ReadFileEx ReadFileScatter ReadFileVlm Read WriteFile WriteFileEx WriteFileGather WriteFileVlm Write DeviceIoControl IOCTL CancelIo FlushFileBuffers Cancel any overlapped operations A device driver provides one or more named devices to the Win32 programmer ...» |
Код для вставки книги в блог HTML
phpBB
текст
|
|