IUnknown::Release

The Release method decrements the reference count of the appropriate handler: IAVIEditStream, IAVIFile, IAVIStream, IAVIStreaming, or IGetFrame. When the reference count reaches zero, the handler must free resources established for the file or stream.

ULONG Release(
  LPUNKNOWN ps  
);
 

Parameters

ps
Address of an IAVIEditStream, IAVIFile, IAVIStream, IAVIStreaming, or IGetFrame interface.

Return Values

Returns the resulting reference count.

Remarks

For handlers written in C++, Release has the following syntax:

HRESULT Release(VOID); 
 

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in unknwn.h.

See Also

Custom File and Stream Handlers Overview, Custom File and Stream Handler Interfaces, IAVIEditStream, IAVIFile, IAVIStream, IAVIStreaming, IGetFrame