다음을 통해 공유


IMSVidVMR9::SetAllocator method (segment.h)

[The feature associated with this page, Microsoft TV Technologies, is a legacy feature. Microsoft strongly recommends that new code does not use this feature.]

This topic applies to Update Rollup 2 for Microsoft Windows XP Media Center Edition 2005.

The SetAllocator method sets a custom allocator-presenter for the VMR-9.

Syntax

HRESULT SetAllocator(
  [in] IUnknown *AllocPresent,
  [in] long     ID
);

Parameters

[in] AllocPresent

Pointer to the IUnknown interface of the allocator-presenter. This object must expose the IVMRSurfaceAllocator9 interface. To use the VMR-9 filter's default allocator-presenter, set this parameter to NULL.

[in] ID

Application-defined identifier for the allocator-presenter.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.

Requirements

Requirement Value
Target Platform Windows
Header segment.h (include Msvidctl.h)

See also

IMSVidVMR9 Interface