5 instantiations of SafeWaitHandle
mscorlib (3)
system\io\filestream.cs (1)
211mre.SafeWaitHandle = new SafeWaitHandle(_overlapped->EventHandle, true);
system\threading\waithandle.cs (2)
118safeWaitHandle = new SafeWaitHandle(value, true); 138safeWaitHandle = new SafeWaitHandle(InvalidHandle, false);
System.Core (2)
System\IO\Pipes\Pipe.cs (1)
1448mre.SafeWaitHandle = new SafeWaitHandle(_overlapped->EventHandle, true);
System\IO\Pipes\PipeStream.cs (1)
1309mre.SafeWaitHandle = new SafeWaitHandle(_overlapped->EventHandle, true);
79 references to SafeWaitHandle
mscorlib (30)
microsoft\win32\win32native.cs (9)
905internal static extern bool SetEvent(SafeWaitHandle handle); 909internal static extern bool ResetEvent(SafeWaitHandle handle); 913internal static extern SafeWaitHandle CreateEvent(SECURITY_ATTRIBUTES lpSecurityAttributes, bool isManualReset, bool initialState, String name); 917internal static extern SafeWaitHandle OpenEvent(/* DWORD */ int desiredAccess, bool inheritHandle, String name); 922internal static extern SafeWaitHandle CreateMutex(SECURITY_ATTRIBUTES lpSecurityAttributes, bool initialOwner, String name); 926internal static extern SafeWaitHandle OpenMutex(/* DWORD */ int desiredAccess, bool inheritHandle, String name); 931internal static extern bool ReleaseMutex(SafeWaitHandle handle); 1133internal static extern SafeWaitHandle CreateSemaphore(SECURITY_ATTRIBUTES lpSecurityAttributes, int initialCount, int maximumCount, String name); 1139internal static extern bool ReleaseSemaphore(SafeWaitHandle handle, int releaseCount, out int previousCount);
system\security\accesscontrol\eventwaithandlesecurity.cs (2)
129internal EventWaitHandleSecurity(SafeWaitHandle handle, AccessControlSections includeSections) 182internal void Persist(SafeWaitHandle handle)
system\security\accesscontrol\mutexsecurity.cs (2)
129internal MutexSecurity(SafeWaitHandle handle, AccessControlSections includeSections) 182internal void Persist(SafeWaitHandle handle)
system\threading\eventwaithandle.cs (4)
65SafeWaitHandle _handle = null; 124SafeWaitHandle _handle = null; 158private EventWaitHandle(SafeWaitHandle handle) 243SafeWaitHandle myHandle = Win32Native.OpenEvent((int) rights, false, name);
system\threading\mutex.cs (6)
162SafeWaitHandle mutexHandle = null; 234internal SafeWaitHandle mutexHandle; 237internal MutexCleanupInfo(SafeWaitHandle mutexHandle, bool inCriticalRegion) 282private Mutex(SafeWaitHandle handle) 381SafeWaitHandle myHandle = Win32Native.OpenMutex((int) rights, false, name); 434static int CreateMutexHandle(bool initiallyOwned, String name, Win32Native.SECURITY_ATTRIBUTES securityAttribute, out SafeWaitHandle mutexHandle) {
system\threading\waithandle.cs (5)
48internal volatile SafeWaitHandle safeWaitHandle; 125public SafeWaitHandle SafeWaitHandle 186internal void SetHandleInternal(SafeWaitHandle handle) 520private static extern int SignalAndWaitOne(SafeWaitHandle waitHandleToSignal,SafeWaitHandle waitHandleToWaitOn, int millisecondsTimeout,
system\threading\waithandleExtensions.cs (2)
21public static SafeWaitHandle GetSafeWaitHandle(this WaitHandle waitHandle) 37public static void SetSafeWaitHandle(this WaitHandle waitHandle, SafeWaitHandle value)
PresentationCore (4)
Core\CSharp\MS\Internal\IO\Packaging\ByteRangeDownloader.cs (4)
67internal ByteRangeDownloader(Uri requestedUri, string tempFileName, SafeWaitHandle eventHandle) 95internal ByteRangeDownloader(Uri requestedUri, Stream tempStream, SafeWaitHandle eventHandle, Mutex fileMutex) 455private ByteRangeDownloader(Uri requestedUri, SafeWaitHandle eventHandle) 962private SafeWaitHandle _eventHandle; // event handle which needs to be raised to inform the caller that
PresentationFramework (2)
src\Framework\MS\Internal\Progressivity\IByteRangeDownloaderService.cs (1)
67SafeWaitHandle eventHandle);
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
826SafeWaitHandle eventHandle)
System (20)
compmod\microsoft\win32\NativeMethods.cs (1)
1332out SafeWaitHandle targetHandle,
compmod\microsoft\win32\SafeNativeMethods.cs (3)
223internal static extern SafeWaitHandle CreateSemaphore(NativeMethods.SECURITY_ATTRIBUTES lpSecurityAttributes, int initialCount, int maximumCount, String name); 230internal static extern SafeWaitHandle OpenSemaphore(/* DWORD */ int desiredAccess, bool inheritHandle, String name); 239internal static extern bool ReleaseSemaphore(SafeWaitHandle handle, int releaseCount, out int previousCount);
compmod\microsoft\win32\UnsafeNativeMethods.cs (1)
396public static extern bool NotifyChangeEventLog(SafeHandle hEventLog, SafeWaitHandle hEvent);
net\System\Net\_SafeNetHandles.cs (2)
2771SafeWaitHandle handle = socketAndEventHandle.waitHandle.SafeWaitHandle; 3088internal uint RegNotifyChangeKeyValue(bool watchSubTree, uint notifyFilter, SafeWaitHandle regEvent, bool async)
net\System\Net\NetworkInformation\UnSafeNetInfoNativemethods.cs (2)
656internal extern static uint IcmpSendEcho2 (SafeCloseIcmpHandle icmpHandle, SafeWaitHandle Event, IntPtr apcRoutine, IntPtr apcContext, 664internal extern static uint Icmp6SendEcho2 (SafeCloseIcmpHandle icmpHandle, SafeWaitHandle Event, IntPtr apcRoutine, IntPtr apcContext,
net\System\Net\UnsafeNativeMethods.cs (3)
181internal static extern uint RegNotifyChangeKeyValue(SafeRegistryHandle key, bool watchSubTree, uint notifyFilter, SafeWaitHandle regEvent, bool async); 360private static extern uint RasConnectionNotification([In] IntPtr hrasconn, [In] SafeWaitHandle hEvent, uint dwFlags); 1508[In] SafeWaitHandle Event,
services\monitoring\system\diagnosticts\processwaithandle.cs (1)
14SafeWaitHandle waitHandle = null;
services\monitoring\system\diagnosticts\SharedUtils.cs (1)
213private static extern int WaitForSingleObjectDontCallThis(SafeWaitHandle handle, int timeout);
sys\system\security\accesscontrol\semaphoresecurity.cs (2)
125internal SemaphoreSecurity(SafeWaitHandle handle, AccessControlSections includeSections) 176internal void Persist(SafeWaitHandle handle)
sys\system\threading\semaphore.cs (4)
69SafeWaitHandle myHandle = SafeNativeMethods.CreateSemaphore(null, initialCount, maximumCount, name); 121SafeWaitHandle myHandle; 157private Semaphore(SafeWaitHandle handle) 270SafeWaitHandle myHandle = SafeNativeMethods.OpenSemaphore((int) rights, false, name);
System.Core (2)
Microsoft\Win32\UnsafeNativeMethods.cs (1)
1001SafeWaitHandle signalEvent,
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (1)
94SafeWaitHandle signalEvent,
System.Net (4)
net\PeerToPeer\Collaboration\UnsafeCollabNativeMethods.cs (3)
823internal extern static int PeerCollabRegisterEvent(SafeWaitHandle hEvent, UInt32 cEventRegistration, 899SafeWaitHandle hEvent, 912SafeWaitHandle hEvent,
net\PeerToPeer\UnsafePeerToPeerMethods.cs (1)
128SafeWaitHandle hEvent,
System.ServiceModel (2)
System\ServiceModel\Channels\UnsafeNativeMethods.cs (2)
700public static extern bool SetWaitableTimer(SafeWaitHandle handle, ref long dueTime, int period, IntPtr mustBeZero, IntPtr mustBeZeroAlso, bool resume); 704public static extern SafeWaitHandle CreateWaitableTimer(IntPtr mustBeZero, bool manualReset, string timerName);
System.ServiceModel.Internals (5)
System\Runtime\Interop\UnsafeNativeMethods.cs (2)
45public static extern SafeWaitHandle CreateWaitableTimer(IntPtr mustBeZero, bool manualReset, string timerName); 52public static extern bool SetWaitableTimer(SafeWaitHandle handle, ref long dueTime, int period, IntPtr mustBeZero, IntPtr mustBeZeroAlso, bool resume);
System\Runtime\IOThreadTimer.cs (3)
630public static unsafe SafeWaitHandle CreateWaitableTimer() 632SafeWaitHandle handle = UnsafeNativeMethods.CreateWaitableTimer(IntPtr.Zero, false, null); 641public static unsafe long Set(SafeWaitHandle timer, long dueTime)
System.Web (2)
Util\StopListeningWaitHandle.cs (2)
28SafeWaitHandle safeWaitHandle; 56private static extern bool DuplicateHandle([In] IntPtr hSourceProcessHandle, [In] IntPtr hSourceHandle, [In] IntPtr hTargetProcessHandle, [Out] out SafeWaitHandle lpTargetHandle, [In] uint dwDesiredAccess, [In] bool bInheritHandle, [In] uint dwOptions);
UIAutomationClient (3)
MS\Internal\Automation\Misc.cs (2)
509internal static int TryMsgWaitForMultipleObjects(SafeWaitHandle handle, bool waitAll, int milliseconds, int wakeMask, ref int lastWin32Error) 539internal static int MsgWaitForMultipleObjects(SafeWaitHandle handle, bool waitAll, int milliseconds, int wakeMask)
MS\Internal\Automation\QueueProcessor.cs (1)
129SafeWaitHandle handle = _ev.SafeWaitHandle;
UIAutomationClientsideProviders (2)
MS\Internal\AutomationProxies\Misc.cs (1)
999internal static int MsgWaitForMultipleObjects(SafeWaitHandle handle, bool waitAll, int milliseconds, int wakeMask)
MS\Internal\AutomationProxies\QueueProcessor.cs (1)
102SafeWaitHandle handle = _ev.SafeWaitHandle;
WindowsBase (3)
Shared\MS\Win32\UnsafeNativeMethodsOther.cs (3)
1158public static extern int SetEvent([In] SafeWaitHandle hHandle); 1162public static extern int WaitForSingleObject([In] SafeWaitHandle hHandle, [In] int dwMilliseconds); 1505SafeWaitHandle hSourceHandle,