GetBuffer method
Returns a specific buffer in the ISurfacePresenter interface.
Syntax
HRESULT retVal = object.GetBuffer(backBufferIndex, riid, ppBuffer);
Parameters
backBufferIndex [in]
Type: UINTThe index of the desired back buffer.
riid [in]
Type: REFIIDThe interface from which to get the back buffer.
ppBuffer [out, retval]
Type: voidA 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.