WinCE stream driver specifies a sort of drivers, that IO according to the mode of stream. In fact, only the driver interfaces are alike stream operations. For instance, stream operation has the following interfaces: CreateFile, ReadFile, WriteFile, seek. And for WinCE:
| Xxx_init |
| Xxx_open |
| Xxx_read |
| Xxx_write |
| Xxx_seek |
| Xxx_iocontrol |
| Xxx_close |
For WinCE driver that already has the above interfaces, while using CreateFile (“XXX1:”) to open the device handle or WriteFile() to send data to device or ReadFile() to read out from device, the operating system will automatically invoke the responding interfaces from the driver.
| CreateFile("xxx1:") -> xxx_open |
| WriteFile() -> xxx_write |
| ReadFile() -> xxx_read |
没有评论:
发表评论