CMemAllocator::CreateInstance
Microsoft DirectShow 9.0 |
CMemAllocator::CreateInstance
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:** Declared in Amfilter.h; include Streams.h.
** Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).
See Also