Microsoft DirectX 9.0

CImageAllocator::CheckSizes

The CheckSizes method checks allocator properties against the current media type.

Syntax

HRESULT CheckSizes(
  ALLOCATOR_PROPERTIES *pRequest
);

Parameters

pRequest

Pointer to an ALLOCATOR_PROPERTIES structure that describes the requested allocator properties.

Return Value

Returns an HRESULT value. Possible values include the following.

Value Description
S_OK The requested properties are compatible with the media type.
E_INVALIDARG The requested properties are not compatible with the media type.
VFW_E_NOT_CONNECTED The owning pin is not connected.

Remarks

When the method returns, if the return value is S_OK, the cbBuffer member of pRequest contains the actual buffer size. This might be larger than the requested size, but will never be smaller.

See Also