Driver Object
Every driver has a driver object, which supports a callback for the add-device event. A driver object can store global data for the driver and can support a callback to clean up that data when the driver is unloaded.
UMDF Driver Callback Object Creation
For a UMDF driver, the framework creates a framework driver object and then calls the driver’s IClassFactory::CreateInstance method on the driver callback object’s class factory, which creates a driver callback object. The driver callback object implements the IDriverEntry interface, which supports the methods in Table 6-1.
Table 6-1. IDriverEntry Interface
Method | Description |
---|---|
OnInitialize | Initializes driver-wide data for the driver callback object and performs any other initialization ... |
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.