Skip to content

Latest commit

 

History

History
63 lines (53 loc) · 2.37 KB

nn-wudfddi-iobjectcleanup.md

File metadata and controls

63 lines (53 loc) · 2.37 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NN:wudfddi.IObjectCleanup
IObjectCleanup (wudfddi.h)
Any driver that stores a reference-counted COM interface to a WDF object must support the IObjectCleanup interface to prevent interface leakage. Note that drivers, in general, are not required to hold references to WDF objects.
wdf\iobjectcleanup.htm
wdf
02/26/2018
IObjectCleanup interface
IObjectCleanup, IObjectCleanup interface, IObjectCleanup interface,described, UMDFBaseObjectRef_4e434f46-a62e-4410-b8ed-663ab59c89dd.xml, umdf.iobjectcleanup, wdf.iobjectcleanup, wudfddi/IObjectCleanup
wudfddi.h
Windows
Windows
IObjectCleanup
wudfddi/IObjectCleanup
APIRef
kbSyntax
COM
Wudfddi.h
IObjectCleanup

IObjectCleanup interface

-description

[Warning: UMDF 2 is the latest version of UMDF and supersedes UMDF 1. All new UMDF drivers should be written using UMDF 2. No new features are being added to UMDF 1 and there is limited support for UMDF 1 on newer versions of Windows 10. Universal Windows drivers must use UMDF 2. For more info, see Getting Started with UMDF.]

Any driver that stores a reference-counted COM interface to a WDF object must support the IObjectCleanup interface to prevent interface leakage. Note that drivers, in general, are not required to hold references to WDF objects.

-inheritance

The IObjectCleanup interface inherits from the IUnknown interface. IObjectCleanup also has these types of members:

  • Methods

-remarks

The framework calls the method of the IObjectCleanup interface when the associated framework object is about to be released.

A driver can register the IObjectCleanup interface when the driver calls any method that creates a WDF object.