Windows desktop applications
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IUnknown::AddRef 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 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.

Syntax


ULONG AddRef(
   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++, AddRef has the following syntax:



HRESULT AddRef(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

 

 

Show:
© 2016 Microsoft