2 instantiations of SafeThreadHandle
System (2)
compmod\system\codedom\compiler\Executor.cs (1)
159
SafeThreadHandle threadSH = new
SafeThreadHandle
();
services\monitoring\system\diagnosticts\Process.cs (1)
1998
SafeThreadHandle threadSH = new
SafeThreadHandle
();
21 references to SafeThreadHandle
System (21)
compmod\microsoft\win32\NativeMethods.cs (8)
177
public static extern bool GetThreadTimes(
SafeThreadHandle
handle, out long creation, out long exit, out long kernel, out long user);
1237
public static extern bool GetThreadPriorityBoost(
SafeThreadHandle
handle, out bool disabled);
1240
public static extern bool SetThreadPriorityBoost(
SafeThreadHandle
handle, bool disabled);
1249
public static extern
SafeThreadHandle
OpenThread(int access, bool inherit, int threadId);
1252
public static extern bool SetThreadPriority(
SafeThreadHandle
handle, int priority);
1255
public static extern int GetThreadPriority(
SafeThreadHandle
handle);
1258
public static extern IntPtr SetThreadAffinityMask(
SafeThreadHandle
handle, HandleRef mask);
1261
public static extern int SetThreadIdealProcessor(
SafeThreadHandle
handle, int processor);
compmod\system\codedom\compiler\Executor.cs (1)
159
SafeThreadHandle
threadSH = new SafeThreadHandle();
services\monitoring\system\diagnosticts\Process.cs (1)
1998
SafeThreadHandle
threadSH = new SafeThreadHandle();
services\monitoring\system\diagnosticts\ProcessManager.cs (2)
288
public static
SafeThreadHandle
OpenThread(int threadId, int access) {
290
SafeThreadHandle
threadHandle = NativeMethods.OpenThread(access, false, threadId);
services\monitoring\system\diagnosticts\ProcessThread.cs (9)
116
SafeThreadHandle
threadHandle = null;
137
SafeThreadHandle
threadHandle = null;
154
SafeThreadHandle
threadHandle = null;
177
SafeThreadHandle
threadHandle = null;
196
SafeThreadHandle
threadHandle = null;
303
private static void CloseThreadHandle(
SafeThreadHandle
handle) {
330
SafeThreadHandle
OpenThreadHandle(int access) {
357
SafeThreadHandle
threadHandle = null;
373
SafeThreadHandle
threadHandle = null;