File Handle I/O Targets in UMDF Drivers

A UMDF driver communicates with some devices by using a Windows file handle, as in the following examples:

  • A device that is exposed through the Windows socket API.

  • A device that is emulated using Windows named pipes.

  • A device that is emulated using the Windows file system.

The driver obtains the file handle by calling a Windows function such as socket, CreateFile, or CreateNamedPipe that returns a file handle.

A driver can bind this handle to a framework I/O target by using the FileHandle I/O target. The driver can then use the framework’s I/O target interface to send I/O requests to the file handle, thereby getting all the benefits of I/O targets.

The IWDFFileHandleTargetFactory interface creates an I/O target ...

Get Developing Drivers with the Windows® Driver Foundation 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.