IMemAllocator::Commit method (strmif.h)
The Commit
method allocates the buffer memory.
Syntax
HRESULT Commit();
Return value
Returns an HRESULT value. Possible values include those shown in the following table.
Return code | Description |
---|---|
|
Success. |
|
Insufficient memory. |
|
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] |
Target Platform | Windows |
Header | strmif.h (include Dshow.h) |
Library | Strmiids.lib |