The IUnknown::Release method decreases the reference count of the object by 1.
ULONG Release();
None.
Returns the new reference count. This value is meant to be used for diagnostic and testing purposes only.
The object deallocates itself when its reference count reaches 0. Use the AddRef method to increase the object's reference count by 1.
This method is part of the IUnknown interface inherited by the object.
Applications must only call this method to release interfaces it explicitly created in a previous call to IUnknown::AddRef, IUnknown::QueryInterface, or a creation function such as DirectDrawCreate.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in unknwn.h.