###User Defined Function###
_WinAPI_DuplicateHandle

###Description###
Duplicates an object handle

###Syntax###
#include <WinAPI.au3>
_WinAPI_DuplicateHandle ( $hSourceProcessHandle, $hSourceHandle, $hTargetProcessHandle, $iDesiredAccess, $fInheritHandle, $iOptions )


###Parameters###
@@ParamTable@@
$hSourceProcessHandle
	A handle to the process with the handle to be duplicated
$hSourceHandle
	The handle to be duplicated
$hTargetProcessHandle
	A handle to the process that is to receive the duplicated handle
$iDesiredAccess
	The access requested for the new handle
$fInheritHandle
	A variable that indicates whether the handle is inheritable
$iOptions
	Optional actions
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	New handle
Failure:	0, call <a href="_WinAPI_GetLastError.htm">_WinAPI_GetLastError()</a> to get extended error information
@@End@@


###Remarks###


###Related###
_WinAPI_OpenProcess, _WinAPI_CloseHandle


###See Also###
@@MsdnLink@@ DuplicateHandle


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