IUnknown::Release method

Note  This topic describes IUnknown in the context of the AVIFile and AVIStream interfaces. For general information about IUnknown, see the Component Object Model (COM) documentation in the Windows SDK.

 

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.

Syntax

ULONG Release(
   LPUNKNOWN ps
);

Parameters

  • ps
    Pointer to an IAVIEditStream, IAVIFile, IAVIStream, IAVIStreaming, or IGetFrame interface.

Return value

Returns the resulting reference count.

Remarks

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

HRESULT Release(VOID); 
 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Unknwn.h

See also

Custom File and Stream Handlers

Custom File and Stream Handler Interfaces