Microsoft DirectX 9.0

IUnknown::Release Method

Decreases the reference count of the interface by 1.


ULONG Release(VOID);

Return Value

Returns the new reference count. This value is for diagnostic and testing purposes only.


The object that exports the interface deallocates itself when its total reference count reaches 0. Use the IUnknown::AddRef method to increase the interface's reference count by 1.

Applications must call this method to release only those interfaces that were explicitly created in a previous call to IUnknown::AddRef, IUnknown::QueryInterface, or a creation function such as Direct3DCreate9.

© 2002 Microsoft Corporation. All rights reserved.