Deleting an Interrupt Object

[This topic applies to UMDF 1.x.]

If the driver creates an interrupt object by calling IWDFDevice3::CreateInterrupt, the driver does not need to delete the interrupt object. The framework deletes the interrupt object automatically because the interrupt object is a child object of the framework device object.

The framework uses the following rules:

Optionally, the driver can call IWDFObject::DeleteWdfObject to delete an interrupt object at any time. Because a driver cannot create a new interrupt object outside of OnDeviceAdd or OnPrepareHardware, manual deletion of the object should not be used unless the driver must remove the object before the framework deletes it.

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft