CPullPin::DecideAllocator
A version of this page is also available for
4/8/2010
Negotiates an allocator to use with the asynchronous reader.
Syntax
virtual HRESULT DecideAllocator(
ImemAllocator* pAlloc,
ALLOCATOR_PROPERTIES* pProps
);
Parameters
- pAlloc
Allocator to propose as the preferred allocator (optional). Pass NULL if you are not proposing an allocator.
- pProps
Size, count, and alignment of the allocator (optional). Pass zero if not requesting the allocator properties.
Return Value
Returns S_OK if successful, VFW_E_BADALIGN if eProps contains an invalid alignment property, E_OUTOFMEMORY if there is not enough memory available to create an allocator, and E_NOINTERFACE if the created IMemAllocator interface is invalid.
Remarks
This member function calls the IAsyncReader::RequestAllocator method to negotiate an allocator.
Requirements
Windows Embedded CE | Windows CE 2.12 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
Note | Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later |