ImpersonateLoggedOnUser

[DllImport("ADVAPI32.dll", ExactSpelling = true, SetLastError = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern BOOL ImpersonateLoggedOnUser(HANDLE hToken);

Last updated