Object Creation

Within each framework, drivers follow these consistent patterns to create objects:

  • UMDF drivers create a callback object, if required, and then call a method to create the corresponding framework object.

  • KMDF drivers initialize an object attributes structure and an object configuration structure and then call a method to create the object.

UMDF Object Creation

UMDF provides object-specific creation methods for device, file, I/O request, memory, and queue objects. To create a framework object, a UMDF driver:

  1. Allocates a new instance of the corresponding callback object, if the driver supports event callbacks for the framework object.

  2. Creates the corresponding framework object and associates it with the callback object.

UMDF drivers allocate ...

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.