IMSVidVMR9::SetAllocator Method

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

  • AllocPresent [in]
    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.

  • ID [in]
    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.

See Also

IMSVidVMR9 Interface

Send comments about this topic to Microsoft

Build date: 12/4/2008