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. |
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 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.
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 |