###User Defined Function###
_WinAPI_EndBufferedPaint

###Description###
Completes a buffered paint operation and frees the associated buffered paint handle.

###Syntax###
#include <WinAPITheme.au3>
_WinAPI_EndBufferedPaint ( $hBP [, $fUpdate = 1] )


###Parameters###
@@ParamTable@@
$hBP
	Handle of the buffered paint context.
$fUpdate
	[optional] Specifies whether copy the buffer to the target DC, valid values:
	True    - The target DC will be updated from the buffer (Default).
	False   - The target DC remains unchanged.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success 	1.
Failure 	0 and sets the @error flag to non-zero, @extended flag may contain the HRESULT error code.
@@End@@


###Remarks###
This function requires <strong>Windows Vista or later</strong>.


###Related###


###See Also###
@@MsdnLink@@ EndBufferedPaint


###Example###
@@IncludeExample@@
