IDirectPlay::Release

ULONG Release();

Decreases the reference count of the DirectPlay object by 1. This method is part of the IUnknown interface inherited by DirectPlay.

·Returns the new reference count of the object.

The DirectPlay object deallocates itself when its reference count reaches 0. Use the IDirectPlay::AddRef method to increase the reference count of the object by 1.