The AddRef method increments the reference count of the appropriate handler: IAVIEditStream, IAVIFile, IAVIStream, IAVIStreaming, or IGetFrame. When the reference count is nonzero, the handler must retain resources for the file or stream.
ULONG AddRef(
LPUNKNWON ps
);
Returns the resulting reference count.
For handlers written in C++, AddRef has the following syntax:
HRESULT AddRef(VOID);
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in unknwn.h.
Custom File and Stream Handlers Overview, Custom File and Stream Handler Interfaces, IAVIEditStream, IAVIFile, IAVIStream, IAVIStreaming, IGetFrame