Microsoft DirectX 9.0


The Commit method allocates the buffer memory.


HRESULT Commit(void);

Return Value

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

Value Description
S_OK Success.
E_OUTOFMEMORY Insufficient memory.
VFW_E_SIZENOTSET Buffer requirements were not set.


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.

See Also