8 instantiations of SafeWaitHandle
aspire (1)
Processes\WindowsProcessInterop.cs (1)
707waitHandle.SafeWaitHandle = new SafeWaitHandle(processHandle.DangerousGetHandle(), ownsHandle: false);
Aspire.Hosting.Browsers (2)
BrowserLogsPipeBrowserProcessLauncher.Windows.cs (2)
43processHandle = new SafeWaitHandle(processInfo.ProcessHandle, ownsHandle: true); 271var jobHandle = new SafeWaitHandle(job, ownsHandle: true);
Aspire.Hosting.Browsers.Tests (2)
src\Aspire.Hosting.Browsers\BrowserLogsPipeBrowserProcessLauncher.Windows.cs (2)
43processHandle = new SafeWaitHandle(processInfo.ProcessHandle, ownsHandle: true); 271var jobHandle = new SafeWaitHandle(job, ownsHandle: true);
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (2)
67_waitHandle = new SafeWaitHandle(value, true); 75get => _waitHandle ??= new SafeWaitHandle(InvalidHandle, false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.Unix.cs (1)
150var safeWaitHandle = new SafeWaitHandle();
172 references to SafeWaitHandle
aspire (1)
Processes\WindowsProcessInterop.cs (1)
706var placeholder = waitHandle.SafeWaitHandle;
Aspire.Hosting.Browsers (8)
BrowserLogsPipeBrowserProcessLauncher.Windows.cs (8)
25SafeWaitHandle? jobHandle = null; 26SafeWaitHandle? processHandle = null; 215private static async Task<BrowserLogsProcessResult> WaitForWindowsProcessAsync(SafeWaitHandle processHandle) 263private static SafeWaitHandle? TryCreateKillOnCloseJob(SafeWaitHandle processHandle) 271var jobHandle = new SafeWaitHandle(job, ownsHandle: true); 302private sealed class WindowsProcessLifetime(int processId, SafeWaitHandle processHandle, SafeWaitHandle? jobHandle, Task<BrowserLogsProcessResult> processTask) : IBrowserLogsPipeBrowserProcessLifetime
Aspire.Hosting.Browsers.Tests (8)
src\Aspire.Hosting.Browsers\BrowserLogsPipeBrowserProcessLauncher.Windows.cs (8)
25SafeWaitHandle? jobHandle = null; 26SafeWaitHandle? processHandle = null; 215private static async Task<BrowserLogsProcessResult> WaitForWindowsProcessAsync(SafeWaitHandle processHandle) 263private static SafeWaitHandle? TryCreateKillOnCloseJob(SafeWaitHandle processHandle) 271var jobHandle = new SafeWaitHandle(job, ownsHandle: true); 302private sealed class WindowsProcessLifetime(int processId, SafeWaitHandle processHandle, SafeWaitHandle? jobHandle, Task<BrowserLogsProcessResult> processTask) : IBrowserLogsPipeBrowserProcessLifetime
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
27[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.SafeHandles.SafeWaitHandle))]
netstandard (1)
netstandard.cs (1)
14[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.SafeHandles.SafeWaitHandle))]
PresentationCore (4)
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (4)
50internal ByteRangeDownloader(Uri requestedUri, string tempFileName, SafeWaitHandle eventHandle) 70internal ByteRangeDownloader(Uri requestedUri, Stream tempStream, SafeWaitHandle eventHandle, Mutex fileMutex) 397private ByteRangeDownloader(Uri requestedUri, SafeWaitHandle eventHandle) 866private SafeWaitHandle _eventHandle; // event handle which needs to be raised to inform the caller that
PresentationFramework (1)
MS\Internal\Progressivity\IByteRangeDownloaderService.cs (1)
53SafeWaitHandle eventHandle);
System.Data.OleDb (18)
_generated\3\LibraryImports.g.cs (10)
40internal static partial global::Microsoft.Win32.SafeHandles.SafeWaitHandle OpenSemaphore(uint desiredAccess, bool inheritHandle, string name) 47global::Microsoft.Win32.SafeHandles.SafeWaitHandle __retVal = default; 50global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedOut __retVal_native__marshaller = new(); 94internal static partial global::Microsoft.Win32.SafeHandles.SafeWaitHandle CreateSemaphoreEx(nint lpSecurityAttributes, int initialCount, int maximumCount, string name, uint flags, uint desiredAccess) 100global::Microsoft.Win32.SafeHandles.SafeWaitHandle __retVal = default; 103global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedOut __retVal_native__marshaller = new(); 145internal static partial bool ReleaseSemaphore(global::Microsoft.Win32.SafeHandles.SafeWaitHandle handle, int releaseCount, out int previousCount) 155global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedIn __handle_native__marshaller = new(); 195internal static partial int WaitForSingleObject(global::Microsoft.Win32.SafeHandles.SafeWaitHandle handle, int timeout) 203global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedIn __handle_native__marshaller = new();
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.Semaphore.cs (3)
14internal static partial SafeWaitHandle OpenSemaphore(uint desiredAccess, [MarshalAs(UnmanagedType.Bool)] bool inheritHandle, string name); 18internal static partial SafeWaitHandle CreateSemaphoreEx(IntPtr lpSecurityAttributes, int initialCount, int maximumCount, string? name, uint flags, uint desiredAccess); 23internal static partial bool ReleaseSemaphore(SafeWaitHandle handle, int releaseCount, out int previousCount);
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.WaitForSingleObject.cs (1)
13internal static partial int WaitForSingleObject(SafeWaitHandle handle, int timeout);
System\Data\ProviderBase\DbConnectionPool.cs (4)
227private readonly SafeWaitHandle _poolHandle; 228private readonly SafeWaitHandle _errorHandle; 229private readonly SafeWaitHandle _creationHandle; 278internal SafeWaitHandle CreationHandle
System.Diagnostics.EventLog (9)
_generated\0\LibraryImports.g.cs (6)
119internal static partial global::System.Diagnostics.Eventing.Reader.EventLogHandle EvtSubscribe(global::System.Diagnostics.Eventing.Reader.EventLogHandle session, global::Microsoft.Win32.SafeHandles.SafeWaitHandle signalEvent, string path, string query, global::System.Diagnostics.Eventing.Reader.EventLogHandle bookmark, nint context, nint callback, int flags) 133global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedIn __signalEvent_native__marshaller = new(); 2220public static partial bool NotifyChangeEventLog(global::Microsoft.Win32.SafeHandles.SafeEventLogReadHandle hEventLog, global::Microsoft.Win32.SafeHandles.SafeWaitHandle hEvent) 2230global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedIn __hEvent_native__marshaller = new(); 2607internal static partial int WaitForSingleObject(global::Microsoft.Win32.SafeHandles.SafeWaitHandle handle, int timeout) 2615global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedIn __handle_native__marshaller = new();
src\runtime\src\libraries\Common\src\Interop\Windows\Advapi32\Interop.NotifyChangeEventLog.cs (1)
14public static partial bool NotifyChangeEventLog(SafeEventLogReadHandle hEventLog, SafeWaitHandle hEvent);
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.WaitForSingleObject.cs (1)
13internal static partial int WaitForSingleObject(SafeWaitHandle handle, int timeout);
System\Diagnostics\Reader\UnsafeNativeMethods.cs (1)
473SafeWaitHandle signalEvent,
System.Diagnostics.PerformanceCounter (7)
_generated\0\LibraryImports.g.cs (4)
360internal static partial bool DuplicateHandle(nint hSourceProcessHandle, global::System.Runtime.InteropServices.SafeHandle hSourceHandle, nint hTargetProcess, out global::Microsoft.Win32.SafeHandles.SafeWaitHandle targetHandle, int dwDesiredAccess, bool bInheritHandle, int dwOptions) 373global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedOut __targetHandle_native__marshaller = new(); 804internal static partial int WaitForSingleObject(global::Microsoft.Win32.SafeHandles.SafeWaitHandle handle, int timeout) 812global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedIn __handle_native__marshaller = new();
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.DuplicateHandle_SafeWaitHandle.cs (1)
19out SafeWaitHandle targetHandle,
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.ProcessWaitHandle.cs (1)
22out SafeWaitHandle waitHandle,
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.WaitForSingleObject.cs (1)
13internal static partial int WaitForSingleObject(SafeWaitHandle handle, int timeout);
System.Diagnostics.Process (2)
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (1)
28private readonly SafeWaitHandle? _handle;
System\Diagnostics\Process.Unix.cs (1)
506private SafeWaitHandle GetSafeWaitHandle()
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\ldap\LdapAsyncResult.cs (1)
48public LdapAsyncWaitHandle(SafeWaitHandle handle) : base()
System.Private.CoreLib (50)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\EventWaitHandle.Unix.cs (5)
49SafeWaitHandle waitHandle = ValidateHandle(); 63SafeWaitHandle waitHandle = ValidateHandle(); 75internal static bool Set(SafeWaitHandle waitHandle) 89private SafeWaitHandle ValidateHandle() 93SafeWaitHandle waitHandle = SafeWaitHandle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Mutex.cs (1)
93private Mutex(SafeWaitHandle handle)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Mutex.Unix.cs (3)
25SafeWaitHandle? safeWaitHandle = WaitSubsystem.CreateNamedMutex(initiallyOwned, name, isUserScope: options.WasSpecified && options.CurrentUserOnly, out createdNew); 47OpenExistingResult status = WaitSubsystem.OpenNamedMutex(name, isUserScope: options.WasSpecified && options.CurrentUserOnly, out SafeWaitHandle? safeWaitHandle); 72SafeWaitHandle waitHandle = SafeWaitHandle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WaitThread.cs (3)
158private readonly SafeWaitHandle[] _waitHandles = new SafeWaitHandle[WaitHandle.MaxWaitHandles]; 244int signaledHandleIndex = WaitHandle.WaitAny(new ReadOnlySpan<SafeWaitHandle>(_waitHandles, 0, numUserWaits + 1), timeoutDurationMs);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\RegisteredWaitHandle.Portable.cs (2)
25private SafeWaitHandle? UserUnregisterWaitHandle { get; set; } 167SafeWaitHandle? handle = UserUnregisterWaitHandle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\RegisteredWaitHandle.Unix.cs (3)
15private SafeWaitHandle? _waitHandle; 29/// The <see cref="SafeWaitHandle"/> that was registered. 31internal SafeWaitHandle Handle
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.Unix.cs (1)
51SafeWaitHandle waitHandle = SafeWaitHandle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.Unix.cs (2)
48SafeWaitHandle waitHandle = GetJoinHandle(); 78SafeWaitHandle waitHandle = GetJoinHandle();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (18)
20private SafeWaitHandle? _waitHandle; 23private static SafeWaitHandle?[]? t_safeWaitHandlesForRent; 73public SafeWaitHandle SafeWaitHandle 117SafeWaitHandle? waitHandle = _waitHandle; 211private static SafeWaitHandle?[] RentSafeWaitHandleArray(int capacity) 213SafeWaitHandle?[]? safeWaitHandles = t_safeWaitHandlesForRent; 223safeWaitHandles = new SafeWaitHandle[Math.Max(capacity, 230private static void ReturnSafeWaitHandleArray(SafeWaitHandle?[]? safeWaitHandles) 240Span<SafeWaitHandle?> safeWaitHandles, 247SafeWaitHandle? lastSafeWaitHandle = null; 253SafeWaitHandle? safeWaitHandle = waitHandle._waitHandle; 267SafeWaitHandle? safeWaitHandle = safeWaitHandles[i]; 312SafeWaitHandle?[]? safeWaitHandles = RentSafeWaitHandleArray(waitHandles.Length); 350if (safeWaitHandles[i] is SafeWaitHandle swh) 361private static unsafe int WaitAnyMultiple(ReadOnlySpan<SafeWaitHandle> safeWaitHandles, int millisecondsTimeout) 458SafeWaitHandle? safeWaitHandleToSignal = toSignal._waitHandle; 459SafeWaitHandle? safeWaitHandleToWaitOn = toWaitOn._waitHandle; 519internal static int WaitAny(ReadOnlySpan<SafeWaitHandle> safeWaitHandles, int millisecondsTimeout) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandleExtensions.cs (2)
15public static SafeWaitHandle GetSafeWaitHandle(this WaitHandle waitHandle) 27public static void SetSafeWaitHandle(this WaitHandle waitHandle, SafeWaitHandle? value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.Unix.cs (9)
147private static SafeWaitHandle NewHandle(IWaitableObject waitableObject) 150var safeWaitHandle = new SafeWaitHandle(); 169public static SafeWaitHandle NewEvent(bool initiallySignaled, EventResetMode resetMode) 174public static SafeWaitHandle NewSemaphore(int initialSignalCount, int maximumSignalCount) 179public static SafeWaitHandle NewMutex(bool initiallyOwned) 182SafeWaitHandle safeWaitHandle = NewHandle(waitableObject); 198public static SafeWaitHandle? CreateNamedMutex(bool initiallyOwned, string name, bool isUserScope, out bool createdNew) 205SafeWaitHandle safeWaitHandle = NewHandle(namedMutex); 209public static OpenExistingResult OpenNamedMutex(string name, bool isUserScope, out SafeWaitHandle? result)
System\Threading\Thread.NativeAot.Unix.cs (1)
17private SafeWaitHandle GetJoinHandle() => _stopped.SafeWaitHandle;
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
8[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.SafeHandles.SafeWaitHandle))]
System.Runtime.Handles (1)
System.Runtime.Handles.cs (1)
4[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.SafeHandles.SafeWaitHandle))]
System.Threading.AccessControl (54)
_generated\0\LibraryImports.g.cs (26)
7internal static partial bool SetEvent(global::Microsoft.Win32.SafeHandles.SafeWaitHandle handle) 16global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedIn __handle_native__marshaller = new(); 53internal static partial bool ResetEvent(global::Microsoft.Win32.SafeHandles.SafeWaitHandle handle) 62global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedIn __handle_native__marshaller = new(); 99internal static partial global::Microsoft.Win32.SafeHandles.SafeWaitHandle CreateEventEx(nint lpSecurityAttributes, string name, uint flags, uint desiredAccess) 105global::Microsoft.Win32.SafeHandles.SafeWaitHandle __retVal = default; 108global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedOut __retVal_native__marshaller = new(); 149internal static partial global::Microsoft.Win32.SafeHandles.SafeWaitHandle OpenEvent(uint desiredAccess, bool inheritHandle, string name) 156global::Microsoft.Win32.SafeHandles.SafeWaitHandle __retVal = default; 159global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedOut __retVal_native__marshaller = new(); 229internal static partial global::Microsoft.Win32.SafeHandles.SafeWaitHandle OpenMutex(uint desiredAccess, bool inheritHandle, string name) 236global::Microsoft.Win32.SafeHandles.SafeWaitHandle __retVal = default; 239global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedOut __retVal_native__marshaller = new(); 282internal static partial global::Microsoft.Win32.SafeHandles.SafeWaitHandle CreateMutexEx(nint lpMutexAttributes, string name, uint flags, uint desiredAccess) 288global::Microsoft.Win32.SafeHandles.SafeWaitHandle __retVal = default; 291global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedOut __retVal_native__marshaller = new(); 332internal static partial bool ReleaseMutex(global::Microsoft.Win32.SafeHandles.SafeWaitHandle handle) 341global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedIn __handle_native__marshaller = new(); 378internal static partial global::Microsoft.Win32.SafeHandles.SafeWaitHandle OpenSemaphore(uint desiredAccess, bool inheritHandle, string name) 385global::Microsoft.Win32.SafeHandles.SafeWaitHandle __retVal = default; 388global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedOut __retVal_native__marshaller = new(); 431internal static partial global::Microsoft.Win32.SafeHandles.SafeWaitHandle CreateSemaphoreEx(nint lpSecurityAttributes, int initialCount, int maximumCount, string name, uint flags, uint desiredAccess) 437global::Microsoft.Win32.SafeHandles.SafeWaitHandle __retVal = default; 440global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedOut __retVal_native__marshaller = new(); 481internal static partial bool ReleaseSemaphore(global::Microsoft.Win32.SafeHandles.SafeWaitHandle handle, int releaseCount, out int previousCount) 491global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeWaitHandle>.ManagedToUnmanagedIn __handle_native__marshaller = new();
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.EventWaitHandle.cs (4)
18internal static partial bool SetEvent(SafeWaitHandle handle); 23internal static partial bool ResetEvent(SafeWaitHandle handle); 27internal static partial SafeWaitHandle CreateEventEx(IntPtr lpSecurityAttributes, string? name, uint flags, uint desiredAccess); 31internal static partial SafeWaitHandle OpenEvent(uint desiredAccess, [MarshalAs(UnmanagedType.Bool)] bool inheritHandle, string name);
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.Mutex.cs (3)
16internal static partial SafeWaitHandle OpenMutex(uint desiredAccess, [MarshalAs(UnmanagedType.Bool)] bool inheritHandle, string name); 20internal static partial SafeWaitHandle CreateMutexEx(IntPtr lpMutexAttributes, string? name, uint flags, uint desiredAccess); 25internal static partial bool ReleaseMutex(SafeWaitHandle handle);
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.Semaphore.cs (3)
14internal static partial SafeWaitHandle OpenSemaphore(uint desiredAccess, [MarshalAs(UnmanagedType.Bool)] bool inheritHandle, string name); 18internal static partial SafeWaitHandle CreateSemaphoreEx(IntPtr lpSecurityAttributes, int initialCount, int maximumCount, string? name, uint flags, uint desiredAccess); 23internal static partial bool ReleaseSemaphore(SafeWaitHandle handle, int releaseCount, out int previousCount);
System\Security\AccessControl\EventWaitHandleSecurity.cs (2)
123internal EventWaitHandleSecurity(SafeWaitHandle handle, AccessControlSections includeSections) 172internal void Persist(SafeWaitHandle handle)
System\Security\AccessControl\MutexSecurity.cs (2)
117internal MutexSecurity(SafeWaitHandle handle, AccessControlSections includeSections) 166internal void Persist(SafeWaitHandle handle)
System\Security\AccessControl\SemaphoreSecurity.cs (2)
111internal SemaphoreSecurity(SafeWaitHandle handle, AccessControlSections includeSections) 160internal void Persist(SafeWaitHandle handle)
System\Threading\EventWaitHandleAcl.cs (4)
51SafeWaitHandle handle = Interop.Kernel32.CreateEventEx( 133SafeWaitHandle existingHandle = Interop.Kernel32.OpenEvent((uint)rights, false, name); 153private static EventWaitHandle CreateAndReplaceHandle(SafeWaitHandle replacementHandle) 160SafeWaitHandle old = eventWaitHandle.SafeWaitHandle;
System\Threading\MutexAcl.cs (4)
36SafeWaitHandle handle = Interop.Kernel32.CreateMutexEx( 124SafeWaitHandle existingHandle = Interop.Kernel32.OpenMutex((uint)rights, false, name); 144private static Mutex CreateAndReplaceHandle(SafeWaitHandle replacementHandle) 151SafeWaitHandle old = mutex.SafeWaitHandle;
System\Threading\SemaphoreAcl.cs (4)
53SafeWaitHandle handle = Interop.Kernel32.CreateSemaphoreEx( 139SafeWaitHandle handle = Interop.Kernel32.OpenSemaphore((uint)rights, false, name); 158private static Semaphore CreateAndReplaceHandle(SafeWaitHandle replacementHandle) 165SafeWaitHandle old = semaphore.SafeWaitHandle;
UIAutomationClient (3)
MS\Internal\Automation\Misc.cs (2)
470internal static int TryMsgWaitForMultipleObjects(SafeWaitHandle handle, bool waitAll, int milliseconds, int wakeMask, ref int lastWin32Error) 499internal static int MsgWaitForMultipleObjects(SafeWaitHandle handle, bool waitAll, int milliseconds, int wakeMask)
MS\Internal\Automation\QueueProcessor.cs (1)
114SafeWaitHandle handle = _ev.SafeWaitHandle;
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\Misc.cs (1)
978internal static int MsgWaitForMultipleObjects(SafeWaitHandle handle, bool waitAll, int milliseconds, int wakeMask)
MS\Internal\AutomationProxies\QueueProcessor.cs (1)
94SafeWaitHandle handle = _ev.SafeWaitHandle;