UMDF Device Object Creation and Initialization

Chapter 5 describes device callback objects

UMDF drivers create a device callback object that partners with a framework device object. The device callback object implements callback interfaces that the framework uses to notify the driver of Plug and Play and file-related events.

The driver callback object’s IDriverEntry::OnDeviceAdd method creates and initializes the device object. The framework calls this method with the following two parameters:

  • A pointer to the IWDFDriver interface on the driver object.

  • A pointer to the IWDFDeviceInitialize interface on the driver object.

The IWDFDriver interface defines the CreateDevice method, which the driver calls to create the framework device object. The IWDFDeviceInitialize ...

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.