Marks the end of drawing on this Microsoft DirectComposition surface object.
HRESULT EndDraw( );
This method has no parameters.
If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code, which can include DCOMPOSITION_ERROR_SURFACE_NOT_BEING_RENDERED.
This method completes an update that was begun by a previous call to the IDCompositionSurface::BeginDraw method. After this method returns, the application can start another update on the same surface object or on a different one.
If the application calls IDCompositionDevice2::Commit before calling IDCompositionSurface::EndDraw for a surface with a pending update, that update is not processed by that Commit call. The update only takes effect on screen after the application calls IDCompositionSurface::EndDraw followed by the IDCompositionDevice2::Commit method.
|Minimum supported client||Windows 8 [desktop apps only]|
|Minimum supported server||Windows Server 2012 [desktop apps only]|