Skip to main content ID2D1RenderTarget::EndDraw method  Ends
drawing operations on the render target and indicates the
current error state and associated tags.   virtual HRESULT
EndDraw(   [out, optional]  D2D1_TAG *tag1 = NULL,   [out,
optional]  D2D1_TAG *tag2 = NULL ) = 0;   tag1 [out, optional]
Type: D2D1_TAG*  When this method returns, contains the tag for
drawing operations that caused errors or 0 if there were no
errors. This parameter is passed uninitialized.  tag2 [out,
optional]  Type: D2D1_TAG*   Return value   If the method
succeeds, it returns S_OK. Otherwise, it returns an HRESULT
error code and sets tag1 and tag2 to the tags that were active
when the error occurred.   Drawing operations can only be issued
between a BeginDraw and EndDraw call.  BeginDraw and EndDraw are
use to indicate that a render target is in use by the Direct2D
system. Different implementations of ID2D1RenderTarget might
behave differently when BeginDraw is called. An
ID2D1BitmapRenderTarget may be locked between BeginDraw/