Microsoft.Win32.SafeHandles Namespace

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.

These classes are derived from the System.Runtime.InteropServices.SafeHandle and System.Runtime.InteropServices.CriticalHandle classes.

  Class Description
Public class CriticalHandleMinusOneIsInvalid Provides a base class for Win32 critical handle implementations in which the value of -1 indicates an invalid handle.
Public class CriticalHandleZeroOrMinusOneIsInvalid Provides a base class for Win32 critical handle implementations in which the value of either 0 or -1 indicates an invalid handle.
Public class SafeFileHandle Represents a wrapper class for a file handle.
Public class SafeHandleMinusOneIsInvalid Provides a base class for Win32 safe handle implementations in which the value of -1 indicates an invalid handle.
Public class SafeHandleZeroOrMinusOneIsInvalid Provides a base class for Win32 safe handle implementations in which the value of either 0 or -1 indicates an invalid handle.
Public class SafeMemoryMappedFileHandle Provides a safe handle that represents a memory-mapped file for sequential access.
Public class SafeMemoryMappedViewHandle Provides a safe handle that represents a view of a block of unmanaged memory for random access.
Public class SafeNCryptHandle Infrastructure. Provides a safe handle that can be used by Cryptography Next Generation (CNG) objects.
Public class SafeNCryptKeyHandle Provides a safe handle that represents a key (NCRYPT_KEY_HANDLE).
Public class SafeNCryptProviderHandle Provides a safe handle that represents a key storage provider (NCRYPT_PROV_HANDLE).
Public class SafeNCryptSecretHandle Provides a safe handle that represents a secret agreement value (NCRYPT_SECRET_HANDLE).
Public class SafePipeHandle Represents a wrapper class for a pipe handle.
Public class SafeProcessHandle Provides a managed wrapper for a process handle.
Public class SafeRegistryHandle Represents a safe handle to the Windows registry.
Public class SafeWaitHandle Represents a wrapper class for a wait handle.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft