156 types derived from SafeHandleZeroOrMinusOneIsInvalid
ComSvcConfig (1)
SafeNativeMethods.cs (1)
28
internal class RegistryHandle :
SafeHandleZeroOrMinusOneIsInvalid
mscorlib (24)
microsoft\win32\safehandles\safefilehandle.cs (1)
28
public sealed class SafeFileHandle:
SafeHandleZeroOrMinusOneIsInvalid
{
microsoft\win32\safehandles\safefilemappinghandle.cs (1)
26
internal sealed class SafeFileMappingHandle :
SafeHandleZeroOrMinusOneIsInvalid
microsoft\win32\safehandles\safefindhandle.cs (1)
26
internal sealed class SafeFindHandle :
SafeHandleZeroOrMinusOneIsInvalid
microsoft\win32\safehandles\safelibraryhandle.cs (1)
26
sealed internal class SafeLibraryHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
microsoft\win32\safehandles\safepefilehandle.cs (1)
20
internal sealed class SafePEFileHandle :
SafeHandleZeroOrMinusOneIsInvalid
microsoft\win32\safehandles\saferegistryhandle.cs (1)
25
public sealed class SafeRegistryHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
microsoft\win32\safehandles\safeviewoffilehandle.cs (1)
28
internal sealed class SafeViewOfFileHandle :
SafeHandleZeroOrMinusOneIsInvalid
microsoft\win32\safehandles\safewaithandle.cs (1)
30
public sealed class SafeWaitHandle :
SafeHandleZeroOrMinusOneIsInvalid
system\io\isolatedstorage\isolatedstoragefile.cs (1)
2785
internal sealed class SafeIsolatedStorageFileHandle :
SafeHandleZeroOrMinusOneIsInvalid
system\runtime\interopservices\safebuffer.cs (1)
83
public abstract unsafe class SafeBuffer :
SafeHandleZeroOrMinusOneIsInvalid
system\security\cryptography\capinative.cs (3)
506
internal sealed class SafeCspHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
542
internal sealed class SafeCspHashHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
581
internal sealed class SafeCspKeyHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
system\security\cryptography\safecryptohandles.cs (3)
29
internal sealed class SafeProvHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
69
internal sealed class SafeKeyHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
105
internal sealed class SafeHashHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
system\security\cryptography\x509certificates\safex509handles.cs (2)
23
internal sealed class SafeCertContextHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
66
internal sealed class SafeCertStoreHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
system\security\safesecurityhandles.cs (4)
47
internal sealed class SafeLsaLogonProcessHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
88
internal sealed class SafeLsaPolicyHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
129
internal sealed class SafeProcessHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
151
internal sealed class SafeThreadHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
system\threading\timer.cs (1)
106
internal class AppDomainTimerSafeHandle :
SafeHandleZeroOrMinusOneIsInvalid
system\typenameparser.cs (1)
17
internal class SafeTypeNameParserHandle :
SafeHandleZeroOrMinusOneIsInvalid
PresentationCore (4)
Core\CSharp\System\Windows\Media\ColorContextHelper.cs (1)
32
internal class SafeProfileHandle :
SafeHandleZeroOrMinusOneIsInvalid
Core\CSharp\System\Windows\Media\ColorTransformHelper.cs (1)
31
internal class ColorTransformHandle :
SafeHandleZeroOrMinusOneIsInvalid
Core\CSharp\System\Windows\Media\SafeMILHandle.cs (1)
20
internal class SafeMILHandle :
SafeHandleZeroOrMinusOneIsInvalid
Core\CSharp\System\Windows\Media\SafeReversePInvokeHandle.cs (1)
31
internal class SafeReversePInvokeWrapper :
SafeHandleZeroOrMinusOneIsInvalid
PresentationFramework (5)
src\Framework\System\Windows\Standard\NativeMethods.cs (5)
1340
internal sealed class SafeFindHandle :
SafeHandleZeroOrMinusOneIsInvalid
1363
internal sealed class SafeDC :
SafeHandleZeroOrMinusOneIsInvalid
1583
internal sealed class SafeHBITMAP :
SafeHandleZeroOrMinusOneIsInvalid
1606
internal sealed class SafeGdiplusStartupToken :
SafeHandleZeroOrMinusOneIsInvalid
1652
internal sealed class SafeConnectionPointCookie :
SafeHandleZeroOrMinusOneIsInvalid
SMDiagnostics (1)
System\ServiceModel\Diagnostics\SafeEventLogWriteHandle.cs (1)
17
sealed class SafeEventLogWriteHandle :
SafeHandleZeroOrMinusOneIsInvalid
SMSvcHost (1)
System\ServiceModel\Activation\WebHostUnsafeNativeMethods.cs (1)
94
internal sealed class SafeFreeLibrary :
SafeHandleZeroOrMinusOneIsInvalid
System (38)
compmod\microsoft\win32\safehandles\SafeEventLogReadHandle.cs (1)
31
internal sealed class SafeEventLogReadHandle :
SafeHandleZeroOrMinusOneIsInvalid
compmod\microsoft\win32\safehandles\SafeEventLogWriteHandle.cs (1)
31
internal sealed class SafeEventLogWriteHandle :
SafeHandleZeroOrMinusOneIsInvalid
compmod\microsoft\win32\safehandles\SafeFileMappingHandle.cs (1)
33
internal sealed class SafeFileMappingHandle :
SafeHandleZeroOrMinusOneIsInvalid
compmod\microsoft\win32\safehandles\SafeFileMapViewHandle.cs (1)
32
internal sealed class SafeFileMapViewHandle :
SafeHandleZeroOrMinusOneIsInvalid
compmod\microsoft\win32\safehandles\SafeLibraryHandle.cs (1)
31
internal sealed class SafeLibraryHandle :
SafeHandleZeroOrMinusOneIsInvalid
compmod\microsoft\win32\safehandles\SafeLocalMemHandle.cs (1)
31
internal sealed class SafeLocalMemHandle :
SafeHandleZeroOrMinusOneIsInvalid
compmod\microsoft\win32\safehandles\SafeProcessHandle.cs (1)
28
public sealed class SafeProcessHandle :
SafeHandleZeroOrMinusOneIsInvalid
compmod\microsoft\win32\safehandles\SafeThreadHandle.cs (1)
28
internal sealed class SafeThreadHandle :
SafeHandleZeroOrMinusOneIsInvalid
compmod\microsoft\win32\safehandles\SafeTimerHandle.cs (1)
31
internal sealed class SafeTimerHandle :
SafeHandleZeroOrMinusOneIsInvalid
compmod\microsoft\win32\safehandles\SafeUserTokenHandle.cs (1)
31
internal sealed class SafeUserTokenHandle :
SafeHandleZeroOrMinusOneIsInvalid
net\System\Net\_SafeNetHandles.cs (16)
257
internal sealed class SafeFreeAddrInfo :
SafeHandleZeroOrMinusOneIsInvalid
{
404
internal sealed class SafeCloseIcmpHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
422
internal sealed class SafeInternetHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
440
internal sealed class SafeSspiAuthDataHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
469
internal abstract class SafeFreeContextBuffer :
SafeHandleZeroOrMinusOneIsInvalid
{
652
internal sealed class SafeLocalFree :
SafeHandleZeroOrMinusOneIsInvalid
{
688
internal sealed class SafeGlobalFree :
SafeHandleZeroOrMinusOneIsInvalid
704
internal sealed class SafeOverlappedFree :
SafeHandleZeroOrMinusOneIsInvalid
{
767
internal sealed class SafeLoadLibrary :
SafeHandleZeroOrMinusOneIsInvalid
{
824
internal sealed class SafeFreeCertChain :
SafeHandleZeroOrMinusOneIsInvalid
{
856
internal sealed class SafeFreeCertChainList :
SafeHandleZeroOrMinusOneIsInvalid
892
internal sealed class SafeCertSelectCritera :
SafeHandleZeroOrMinusOneIsInvalid
1014
internal sealed class SafeFreeCertContext :
SafeHandleZeroOrMinusOneIsInvalid
{
2953
internal sealed class SafeUnlockUrlCacheEntryFile :
SafeHandleZeroOrMinusOneIsInvalid
{
3024
SafeHandleZeroOrMinusOneIsInvalid
3113
internal sealed class SafeWebSocketHandle :
SafeHandleZeroOrMinusOneIsInvalid
net\System\Net\NetworkInformation\SafeCancelMibChangeNotify.cs (1)
12
internal class SafeCancelMibChangeNotify :
SafeHandleZeroOrMinusOneIsInvalid
net\System\Net\NetworkInformation\SafeFreeMibTable.cs (1)
8
internal class SafeFreeMibTable :
SafeHandleZeroOrMinusOneIsInvalid
net\System\Net\UnsafeNativeMethods.cs (1)
2224
internal sealed class HeapAllocHandle :
SafeHandleZeroOrMinusOneIsInvalid
parent\parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (1)
336
private class SafeLibraryHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
security\system\security\Authentication\ExtendedProtection\ChannelBinding.cs (1)
13
public abstract class ChannelBinding :
SafeHandleZeroOrMinusOneIsInvalid
security\system\security\cryptography\cryptoapi.cs (7)
3922
internal sealed class SafeLibraryHandle :
SafeHandleZeroOrMinusOneIsInvalid
3944
internal sealed class SafeLocalAllocHandle :
SafeHandleZeroOrMinusOneIsInvalid
3979
internal sealed class SafeCryptProvHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
4013
internal sealed class SafeCertContextHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
4050
internal sealed class SafeCertStoreHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
4084
internal sealed class SafeCryptMsgHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
4127
public sealed class SafeX509ChainHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
System.Configuration (2)
Microsoft\Win32\SafeCryptContextHandle.cs (1)
15
internal sealed class SafeCryptContextHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
Microsoft\Win32\SafeNativeMemoryHandle.cs (1)
16
internal sealed class SafeNativeMemoryHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
System.Core (13)
Microsoft\Win32\SafeHandles\BCryptSafeHandles.cs (3)
21
internal sealed class SafeBCryptAlgorithmHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
41
internal sealed class SafeBCryptHashHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
81
internal sealed class SafeBCryptKeyHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
Microsoft\Win32\SafeHandles\CapiSafeHandles.cs (3)
26
internal sealed class SafeAxlBufferHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
69
internal abstract class SafeCapiHandleBase :
SafeHandleZeroOrMinusOneIsInvalid
{
330
internal sealed class SafeCspHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs (1)
48
public abstract class SafeNCryptHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
Microsoft\Win32\SafeHandles\SafeLibraryHandle.cs (1)
28
sealed internal class SafeLibraryHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
Microsoft\Win32\SafeHandles\SafeMemoryMappedFileHandle.cs (1)
33
public sealed class SafeMemoryMappedFileHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
Microsoft\Win32\SafeHandles\SafePerfProviderHandle.cs (1)
17
internal sealed class SafePerfProviderHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
Microsoft\Win32\SafeHandles\SafePipeHandle.cs (1)
24
public sealed class SafePipeHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
System\Security\Cryptography\CapiNative.cs (1)
973
internal sealed class SafeLocalAllocHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
System\Security\Cryptography\X509Certificates\X509Native.cs (1)
481
internal sealed class SafeCertContextHandle :
SafeHandleZeroOrMinusOneIsInvalid
System.Data (3)
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (3)
858
internal class UnicodeString :
SafeHandleZeroOrMinusOneIsInvalid
931
internal class SecurityQualityOfService :
SafeHandleZeroOrMinusOneIsInvalid
1002
internal class FileFullEaInformation :
SafeHandleZeroOrMinusOneIsInvalid
System.IdentityModel (11)
System\IdentityModel\CryptoApi.cs (3)
348
class SafeCertStoreHandle :
SafeHandleZeroOrMinusOneIsInvalid
375
class SafeCertContextHandle :
SafeHandleZeroOrMinusOneIsInvalid
402
class SafeCertChainHandle :
SafeHandleZeroOrMinusOneIsInvalid
System\IdentityModel\SafeCryptHandles.cs (2)
15
class SafeProvHandle :
SafeHandleZeroOrMinusOneIsInvalid
40
class SafeKeyHandle :
SafeHandleZeroOrMinusOneIsInvalid
System\IdentityModel\SspiSafeHandles.cs (6)
1198
sealed class SafeFreeCertContext :
SafeHandleZeroOrMinusOneIsInvalid
1229
sealed class SafeFreeContextBuffer :
SafeHandleZeroOrMinusOneIsInvalid
1360
sealed class SafeCloseHandle :
SafeHandleZeroOrMinusOneIsInvalid
1389
sealed class SafeHGlobalHandle :
SafeHandleZeroOrMinusOneIsInvalid
1454
sealed class SafeLsaLogonProcessHandle :
SafeHandleZeroOrMinusOneIsInvalid
1477
sealed class SafeLsaReturnBufferHandle :
SafeHandleZeroOrMinusOneIsInvalid
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\SafeLibraryHandle.cs (1)
31
class SafeLibraryHandle :
SafeHandleZeroOrMinusOneIsInvalid
System.Messaging (4)
System\Messaging\Interop\SafeHandles.cs (4)
13
internal class MessageQueueHandle :
SafeHandleZeroOrMinusOneIsInvalid
49
internal class CursorHandle :
SafeHandleZeroOrMinusOneIsInvalid
84
internal class LocatorHandle :
SafeHandleZeroOrMinusOneIsInvalid
121
internal sealed class SecurityContextHandle :
SafeHandleZeroOrMinusOneIsInvalid
System.Net (10)
net\PeerToPeer\Collaboration\UnsafeCollabNativeMethods.cs (6)
30
internal sealed class SafeCollabData :
SafeHandleZeroOrMinusOneIsInvalid
54
internal sealed class SafeCollabEnum :
SafeHandleZeroOrMinusOneIsInvalid
78
internal sealed class SafeCollabInvite :
SafeHandleZeroOrMinusOneIsInvalid
102
internal sealed class SafeCertStore :
SafeHandleZeroOrMinusOneIsInvalid
125
internal sealed class SafeCollabMemory :
SafeHandleZeroOrMinusOneIsInvalid
162
internal sealed class SafeCollabEvent :
SafeHandleZeroOrMinusOneIsInvalid
net\PeerToPeer\UnsafePeerToPeerMethods.cs (3)
181
internal sealed class SafePeerData :
SafeHandleZeroOrMinusOneIsInvalid
209
internal sealed class SafePeerNameUnregister :
SafeHandleZeroOrMinusOneIsInvalid
229
internal sealed class SafePeerNameEndResolve :
SafeHandleZeroOrMinusOneIsInvalid
net\UnsafeMethods.cs (1)
82
internal sealed class SafeLoadLibrary :
SafeHandleZeroOrMinusOneIsInvalid
System.Runtime.Caching (1)
System\Caching\SafeRegistryHandle.cs (1)
13
internal class SafeRegistryHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
System.Security (7)
system\security\cryptography\cryptoapi.cs (7)
2928
internal sealed class SafeLibraryHandle :
SafeHandleZeroOrMinusOneIsInvalid
2947
internal sealed class SafeLocalAllocHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
2978
internal sealed class SafeCryptProvHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
3063
internal sealed class SafeCertContextHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
3094
internal sealed class SafeCertStoreHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
3125
internal sealed class SafeCryptMsgHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
3155
internal sealed class SafeCertChainHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
System.ServiceModel (7)
System\ServiceModel\Activation\ListenerUnsafeNativeMethods.cs (2)
246
sealed class SafeCloseHandle :
SafeHandleZeroOrMinusOneIsInvalid
273
sealed class SafeServiceHandle :
SafeHandleZeroOrMinusOneIsInvalid
System\ServiceModel\Channels\UnsafeNativeMethods.cs (4)
1228
sealed class SafeFileMappingHandle :
SafeHandleZeroOrMinusOneIsInvalid
1242
sealed class SafeLibraryHandle :
SafeHandleZeroOrMinusOneIsInvalid
1274
sealed class SafeViewOfFileHandle :
SafeHandleZeroOrMinusOneIsInvalid
1293
sealed class MsmqQueueHandle :
SafeHandleZeroOrMinusOneIsInvalid
System\ServiceModel\ComIntegration\SafeNativeMethods.cs (1)
566
internal class RegistryHandle :
SafeHandleZeroOrMinusOneIsInvalid
System.ServiceModel.Activation (2)
System\ServiceModel\Activation\Interop\SafeCloseHandleCritical.cs (1)
17
sealed class SafeCloseHandleCritical :
SafeHandleZeroOrMinusOneIsInvalid
System\ServiceModel\Activation\Interop\SafeHGlobalHandleCritical.cs (1)
18
sealed class SafeHGlobalHandleCritical :
SafeHandleZeroOrMinusOneIsInvalid
System.ServiceModel.Internals (1)
System\Runtime\Interop\SafeEventLogWriteHandle.cs (1)
16
sealed class SafeEventLogWriteHandle :
SafeHandleZeroOrMinusOneIsInvalid
System.Web (1)
Util\HeapAllocHandle.cs (1)
12
internal class HeapAllocHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
UIAutomationClient (1)
MS\Internal\Automation\SafeProcessHandle.cs (1)
27
internal sealed class SafeProcessHandle :
SafeHandleZeroOrMinusOneIsInvalid
UIAutomationClientsideProviders (4)
MS\Internal\AutomationProxies\CommonRemoteMemoryBlock.cs (1)
35
class RemoteMemoryBlock :
SafeHandleZeroOrMinusOneIsInvalid
MS\Internal\AutomationProxies\SafeCoTaskMem.cs (1)
23
internal sealed class SafeCoTaskMem :
SafeHandleZeroOrMinusOneIsInvalid
MS\Internal\AutomationProxies\SafeProcessHandle.cs (1)
24
internal sealed class SafeProcessHandle :
SafeHandleZeroOrMinusOneIsInvalid
MS\Internal\AutomationProxies\SafeThemeHandle.cs (1)
24
internal sealed class SafeThemeHandle :
SafeHandleZeroOrMinusOneIsInvalid
WindowsBase (5)
parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (1)
336
private class SafeLibraryHandle :
SafeHandleZeroOrMinusOneIsInvalid
{
Shared\MS\Win32\NativeMethodsOther.cs (2)
255
internal abstract class WpfSafeHandle :
SafeHandleZeroOrMinusOneIsInvalid
686
internal sealed class SafeLocalMemHandle :
SafeHandleZeroOrMinusOneIsInvalid
Shared\MS\Win32\UnsafeNativeMethodsOther.cs (2)
539
internal sealed class SafeFileMappingHandle :
SafeHandleZeroOrMinusOneIsInvalid
590
internal sealed class SafeViewOfFileHandle :
SafeHandleZeroOrMinusOneIsInvalid
WsatConfig (4)
Configuration\SafeCertificateContext.cs (1)
16
internal sealed class SafeCertificateContext :
SafeHandleZeroOrMinusOneIsInvalid
Configuration\SafeCertificateStore.cs (1)
15
sealed class SafeCertificateStore :
SafeHandleZeroOrMinusOneIsInvalid
Configuration\SafeLocalAllocation.cs (1)
15
sealed class SafeLocalAllocation :
SafeHandleZeroOrMinusOneIsInvalid
Configuration\SafeRegistryKey.cs (1)
15
sealed class SafeRegistryKey :
SafeHandleZeroOrMinusOneIsInvalid
WsatUI (5)
Configuration\SafeCertificateContext.cs (1)
16
internal sealed class SafeCertificateContext :
SafeHandleZeroOrMinusOneIsInvalid
Configuration\SafeCertificateStore.cs (1)
15
sealed class SafeCertificateStore :
SafeHandleZeroOrMinusOneIsInvalid
Configuration\SafeLocalAllocation.cs (1)
15
sealed class SafeLocalAllocation :
SafeHandleZeroOrMinusOneIsInvalid
Configuration\SafeRegistryKey.cs (1)
15
sealed class SafeRegistryKey :
SafeHandleZeroOrMinusOneIsInvalid
MMCUI\SafePropertyPage.cs (1)
15
public sealed class SafePropertyPage :
SafeHandleZeroOrMinusOneIsInvalid