DuplicateHandle Function - Windows API

Purpose



Declaration

C#

[DllImport("kernel32.dll")]
public static extern int DuplicateHandle(int hSourceProcessHandle,
	int hSourceHandle, int hTargetProcessHandle, ref int lpTargetHandle, int
	dwDesiredAccess, int bInheritHandle, int dwOptions);