CMemAllocator.CMemAllocator constructor

Constructor method.

Syntax

CMemAllocator(
   TCHAR     *pName,
   LPUNKNOWN pUnk,
   HRESULT   *phr
);

Parameters

pName

Pointer to a string containing the name of the allocator.

pUnk

Pointer to the owner of this object. If the object is aggregated, pass a pointer to the aggregating object's IUnknown interface. Otherwise, set this parameter to NULL.

phr

Pointer to a variable that receives an HRESULT value indicating the success or failure of the method.

Requirements

Header
Amfilter.h (include Streams.h)
Library
Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CMemAllocator Class