Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IUnknown::Release
Collapse the table of content
Expand the table of content

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

 

 

Community Additions

ADD
Show:
© 2015 Microsoft