Microsoft.Win32.SafeHandles Namespace

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

The Microsoft.Win32.SafeHandles namespace contains classes that are abstract derivations of safe handle classes that provide common functionality supporting file and operating system handles.

ClassDescription
System_CAPS_pubclassCriticalHandleMinusOneIsInvalid

Provides a base class for Win32 critical handle implementations in which the value of -1 indicates an invalid handle.

System_CAPS_pubclassCriticalHandleZeroOrMinusOneIsInvalid

Provides a base class for Win32 critical handle implementations in which the value of either 0 or -1 indicates an invalid handle.

System_CAPS_pubclassSafeAccessTokenHandle

Provides a safe handle to a Windows thread or process access token. For more information see Access Tokens

System_CAPS_pubclassSafeFileHandle

Represents a wrapper class for a file handle.

System_CAPS_pubclassSafeHandleMinusOneIsInvalid

Provides a base class for Win32 safe handle implementations in which the value of -1 indicates an invalid handle.

System_CAPS_pubclassSafeHandleZeroOrMinusOneIsInvalid

Provides a base class for Win32 safe handle implementations in which the value of either 0 or -1 indicates an invalid handle.

System_CAPS_pubclassSafeMemoryMappedFileHandle

Provides a safe handle that represents a memory-mapped file for sequential access.

System_CAPS_pubclassSafeMemoryMappedViewHandle

Provides a safe handle that represents a view of a block of unmanaged memory for random access.

System_CAPS_pubclassSafeNCryptHandle

This API supports the product infrastructure and is not intended to be used directly from your code. Provides a safe handle that can be used by Cryptography Next Generation (CNG) objects.

System_CAPS_pubclassSafeNCryptKeyHandle

Provides a safe handle that represents a key (NCRYPT_KEY_HANDLE).

System_CAPS_pubclassSafeNCryptProviderHandle

Provides a safe handle that represents a key storage provider (NCRYPT_PROV_HANDLE).

System_CAPS_pubclassSafeNCryptSecretHandle

Provides a safe handle that represents a secret agreement value (NCRYPT_SECRET_HANDLE).

System_CAPS_pubclassSafePipeHandle

Represents a wrapper class for a pipe handle.

System_CAPS_pubclassSafeProcessHandle

Provides a managed wrapper for a process handle.

System_CAPS_pubclassSafeRegistryHandle

Represents a safe handle to the Windows registry.

System_CAPS_pubclassSafeWaitHandle

Represents a wrapper class for a wait handle.

System_CAPS_pubclassSafeX509ChainHandle

Provides a wrapper class that represents the handle of an X.509 chain object. For more information, see X509Chain.

Return to top
Show: