GetBuffer method

Returns a specific buffer in the ISurfacePresenter interface.

 

Syntax

HRESULT retVal = object.GetBuffer(backBufferIndex, riid, ppBuffer);

Parameters

  • backBufferIndex [in]
    Type: UINT

    The index of the desired back buffer.

  • riid [in]
    Type: REFIID

    The interface from which to get the back buffer.

  • ppBuffer [out, retval]
    Type: void

    A buffer in the surface presenter.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The interface request must match the mode that the presenter was opened with.