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

CMemAllocator.CreateInstance method

The CreateInstance method creates a new instance of the CMemAllocator class.

Syntax


static CUnknown* CreateInstance(
   LPUNKNOWN pUnk,
   HRESULT   *phr
);

Parameters

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.

Return value

Returns a pointer to a new CMemAllocator object, typed as a CUnknown object.

Requirements

Header

Amfilter.h (include Streams.h)

Library

Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CMemAllocator Class

 

 

Community Additions

ADD
Show:
© 2015 Microsoft