73 references to SetHandleAsInvalid
mscorlib (6)
microsoft\win32\registrykey.cs (1)
1688
this.hkey.
SetHandleAsInvalid
();
system\console.cs (1)
491
sh.
SetHandleAsInvalid
();
system\threading\eventwaithandle.cs (2)
83
_handle.
SetHandleAsInvalid
();
145
_handle.
SetHandleAsInvalid
();
system\threading\mutex.cs (1)
192
mutexHandle.
SetHandleAsInvalid
();
system\threading\waithandle.cs (1)
112
safeWaitHandle.
SetHandleAsInvalid
();
SMDiagnostics (1)
System\ServiceModel\Diagnostics\Utility.cs (1)
39
handle.
SetHandleAsInvalid
();
System (24)
net\System\Net\_SafeNetHandles.cs (20)
494
pkgArray.
SetHandleAsInvalid
();
569
refHandle.
SetHandleAsInvalid
();
667
result.
SetHandleAsInvalid
();
718
result.
SetHandleAsInvalid
();
802
result.
SetHandleAsInvalid
();
1143
outCredential.
SetHandleAsInvalid
();
1197
outCredential.
SetHandleAsInvalid
();
1236
outCredential.
SetHandleAsInvalid
();
1307
outCredential.
SetHandleAsInvalid
();
1747
handleTemplate.
SetHandleAsInvalid
();
2061
handleTemplate.
SetHandleAsInvalid
();
2453
target.
SetHandleAsInvalid
();
2480
target.
SetHandleAsInvalid
();
2720
result.
SetHandleAsInvalid
();
2729
result.
SetHandleAsInvalid
();
2738
result.
SetHandleAsInvalid
();
2832
result.
SetHandleAsInvalid
();
2925
refHandle.
SetHandleAsInvalid
();
3004
handle.
SetHandleAsInvalid
();
3103
SetHandleAsInvalid
();
net\System\Net\NetWebProxyFinder.cs (1)
510
autoProxyUrl.
SetHandleAsInvalid
();
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (1)
1595
fileMappingHandle.
SetHandleAsInvalid
();
sys\system\io\ports\SerialStream.cs (2)
1572
_handle.
SetHandleAsInvalid
();
1621
_handle.
SetHandleAsInvalid
();
System.Core (7)
System\IO\LogStream.cs (2)
291
_handle.
SetHandleAsInvalid
();
317
_handle.
SetHandleAsInvalid
();
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (1)
493
handle.
SetHandleAsInvalid
();
System\IO\Pipes\PipeStream.cs (1)
1162
m_handle.
SetHandleAsInvalid
();
System\Security\Cryptography\NCryptNative.cs (1)
1010
key.
SetHandleAsInvalid
();
System\Security\Cryptography\X509Certificates\X509Native.cs (2)
90
privateKey?.
SetHandleAsInvalid
();
103
privateKey.
SetHandleAsInvalid
();
System.IdentityModel (7)
System\IdentityModel\SspiSafeHandles.cs (7)
435
handleTemplate.
SetHandleAsInvalid
();
703
handleTemplate.
SetHandleAsInvalid
();
1010
outCredential.
SetHandleAsInvalid
();
1046
outCredential.
SetHandleAsInvalid
();
1091
outCredential.
SetHandleAsInvalid
();
1132
outCredential.
SetHandleAsInvalid
();
1325
refHandle.
SetHandleAsInvalid
();
System.Net (11)
net\PeerToPeer\Collaboration\UnsafeCollabNativeMethods.cs (7)
38
SetHandleAsInvalid
(); //Mark it closed - This does not change the value of the handle it self
62
SetHandleAsInvalid
(); //Mark it closed - This does not change the value of the handle it self
86
SetHandleAsInvalid
(); //Mark it closed - This does not change the value of the handle it self
110
SetHandleAsInvalid
(); //Mark it closed - This does not change the value of the handle it self
136
SetHandleAsInvalid
();
146
SetHandleAsInvalid
(); //Mark it closed - This does not change the value of the handle it self
168
SetHandleAsInvalid
(); //Mark it closed - This does not change the value of the handle it self
net\PeerToPeer\UnsafePeerToPeerMethods.cs (3)
195
SetHandleAsInvalid
(); //Mark it closed - This does not change the value of the handle it self
216
SetHandleAsInvalid
(); //Mark it closed - This does not change the value of the handle it self
236
SetHandleAsInvalid
(); //Mark it closed - This does not change the value of the handle it self
net\UnsafeMethods.cs (1)
121
result.
SetHandleAsInvalid
();
System.ServiceModel (15)
System\ServiceModel\Activation\SharedMemory.cs (3)
45
fileMapping.
SetHandleAsInvalid
();
89
handle.
SetHandleAsInvalid
();
124
fileMapping.
SetHandleAsInvalid
();
System\ServiceModel\Activation\Utility.cs (4)
41
process.
SetHandleAsInvalid
();
54
process.
SetHandleAsInvalid
();
107
scManager.
SetHandleAsInvalid
();
120
service.
SetHandleAsInvalid
();
System\ServiceModel\Channels\PipeConnection.cs (7)
643
targetProcessHandle.
SetHandleAsInvalid
();
1815
pipeHandle.
SetHandleAsInvalid
();
2088
pipeHandle.
SetHandleAsInvalid
();
2564
fileMapping.
SetHandleAsInvalid
();
2614
fileMapping.
SetHandleAsInvalid
();
2622
fileMapping.
SetHandleAsInvalid
();
2732
handle.
SetHandleAsInvalid
();
System\ServiceModel\ComIntegration\OuterProxyWrapper.cs (1)
62
monikerSupportLibrary.
SetHandleAsInvalid
();
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedImpersonationContext.cs (1)
68
handle.
SetHandleAsInvalid
();
System.ServiceModel.Internals (1)
System\Runtime\IOThreadTimer.cs (1)
636
handle.
SetHandleAsInvalid
();