Export (0) Print
Expand All

IMemAllocator::Commit method

The Commit method allocates the buffer memory.

Syntax


HRESULT Commit();

Parameters

This method has no parameters.

Return value

Returns an HRESULT value. Possible values include those shown in the following table.

Return codeDescription
S_OK

Success.

E_OUTOFMEMORY

Insufficient memory.

VFW_E_SIZENOTSET

Buffer requirements were not set.

 

Remarks

Before calling this method, call the IMemAllocator::SetProperties method to specify the buffer requirements.

You must call this method before calling the IMemAllocator::GetBuffer method.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

See also

Error and Success Codes
IMemAllocator Interface

 

 

Community Additions

ADD
Show:
© 2014 Microsoft