3 instantiations of SafeUserTokenHandle
System (3)
compmod\system\codedom\compiler\CompilerParameters.cs (1)
317
userToken = new
SafeUserTokenHandle
(value, false);
compmod\system\codedom\compiler\Executor.cs (2)
94
return ExecWaitWithCapture(new
SafeUserTokenHandle
(userToken, false), cmd, Environment.CurrentDirectory, tempFiles, ref outputName, ref errorName, null);
103
return ExecWaitWithCapture(new
SafeUserTokenHandle
(userToken, false), cmd, Environment.CurrentDirectory, tempFiles, ref outputName, ref errorName, null);
7 references to SafeUserTokenHandle
System (7)
compmod\microsoft\win32\safehandles\SafeUserTokenHandle.cs (1)
44
internal extern static bool DuplicateTokenEx(SafeHandle hToken, int access, NativeMethods.SECURITY_ATTRIBUTES tokenAttributes, int impersonationLevel, int tokenType, out
SafeUserTokenHandle
hNewToken);
compmod\system\codedom\compiler\CompilerParameters.cs (2)
53
private
SafeUserTokenHandle
userToken;
321
internal
SafeUserTokenHandle
SafeUserToken {
compmod\system\codedom\compiler\Executor.cs (4)
111
internal static int ExecWaitWithCapture(
SafeUserTokenHandle
userToken, string cmd, string currentDir, TempFileCollection tempFiles, ref string outputName, ref string errorName, string trueCmdLine) {
137
private static unsafe int ExecWaitWithCaptureUnimpersonated(
SafeUserTokenHandle
userToken, string cmd, string currentDir, TempFileCollection tempFiles, ref string outputName, ref string errorName, string trueCmdLine) {
160
SafeUserTokenHandle
primaryToken = null;
240
success =
SafeUserTokenHandle
.DuplicateTokenEx(