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

CMemAllocator.Alloc method

The Alloc method allocates memory for the buffers.

Syntax


HRESULT Alloc();

Parameters

This method has no parameters.

Return value

Returns one of the HRESULT values shown in the following table.

Return codeDescription
S_OK

Success.

E_OUTOFMEMORY

Insufficient memory.

VFW_E_SIZENOTSET

Buffer requirements were not set.

 

Remarks

This method is called by the CBaseAllocator::Commit method. It allocates a contiguous block of memory sufficient for the buffer requirements given in the CMemAllocator::SetProperties method.

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