GetSurface method

Retrieves a pointer to the parent DXSurface.


HRESULT retVal = object.GetSurface(riid, ppSurface);


  • riid [in]
    Type: REFIID

    Interface to retrieve from the read pointer, typically IID_IDXSurface.

  • ppSurface [out]
    Type: void

    Address of a pointer to the requested interface.


This method retrieves a pointer to the parent surface associated with the specified IDXARGBReadPtr interface. It provides a link between the IDXSurface::LockSurface interface, which exposes the IDXARGBReadPtr and IDXARGBReadWritePtr interfaces, and the DXSurface object, which exposes the IDXSurface interface.