IObjectCleanup::OnCleanup method

[Applies to UMDF 1.x only]

The OnCleanup method releases any references to a WDF object to prevent interface leakage.

Syntax


void OnCleanup(
  [in]  IWDFObject *pWdfObject
);

Parameters

pWdfObject [in]

A pointer to the IWDFObject interface of a object that is about to be released.

Return value

None

Remarks

The framework calls OnCleanup as part of a WDF object destruction sequence. The framework calls OnCleanup before the WDF object is destroyed.

A driver can register the IObjectCleanup interface when the driver calls any of the following methods that creates a WDF object or that assigns a context to the WDF object:

Requirements

Header

Wudfddi.h (include Wudfddi.h)

See also

IObjectCleanup
IWDFDevice::CreateIoQueue
IWDFDevice::CreateRequest
IWDFDriver::CreateDevice
IWDFDriver::CreatePreallocatedWdfMemory
IWDFDriver::CreateWdfMemory
IWDFDriver::CreateWdfObject
IWDFObject
IWDFObject::AssignContext

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft