Microsoft Windows CE 3.0  

CPullPin::DecideAllocator

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Negotiates an allocator to use with the asynchronous reader.

virtual HRESULT DecideAllocator(
ImemAllocator *
pAlloc, 
ALLOCATOR_PROPERTIES
*
pProps
);

Parameters

pAlloc
Allocator to propose as the preferred allocator (optional). Pass NULL if you aren't proposing an allocator.
pProps
Size, count, and alignment of the allocator (optional). Pass zero if not requesting the allocator properties.

Return Values

Returns S_OK if successful, VFW_E_BADALIGN if ePropscontains an invalid alignment property, E_OUTOFMEMORY if there is not enough memory available to create an allocator, and E_NOINTERFACE if the created IMemAllocatorinterface is invalid.

Remarks

This member function calls the IAsyncReader::RequestAllocatormethod to negotiate an allocator.