Compartilhar via


CEnumMediaTypes::AddRef (Compact 2013)

3/26/2014

Increments the reference count for the calling interface on an object. It should be called for every new copy of a pointer to an interface on a given object.

Syntax

ULONG AddRef(void);

Parameters

None.

Return Value

Returns an integer from 1 to n, the value of the new reference count.

This information is meant to be used for diagnostic/testing purposes only, because, in certain situations, the value might be unstable.

Remarks

This member function implements the IUnknown::AddRef method.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CEnumMediaTypes Class