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