Click or drag to resize

ImpersonateDuplicateToken Method

Namespace:  EDK4Net.IO
Assembly:  EDK4Net (in EDK4Net.dll) Version: 3.0.7.3
Syntax
C#
[DllImportAttribute("advapi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
[BrowsableAttribute(false)]
public static int DuplicateToken(
	IntPtr hToken,
	int impersonationLevel,
	ref IntPtr hNewToken
)

Parameters

hToken
Type: SystemIntPtr
impersonationLevel
Type: SystemInt32
hNewToken
Type: SystemIntPtr

Return Value

Type: Int32
See Also