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.

  ClassDescription
Public classCriticalHandleMinusOneIsInvalidProvides a base class for Win32 critical handle implementations in which the value of -1 indicates an invalid handle.
Public classCriticalHandleZeroOrMinusOneIsInvalidProvides a base class for Win32 critical handle implementations in which the value of either 0 or -1 indicates an invalid handle.
Public classSafeFileHandleRepresents a wrapper class for a file handle.
Public classSafeHandleMinusOneIsInvalidProvides a base class for Win32 safe handle implementations in which the value of -1 indicates an invalid handle.
Public classSafeHandleZeroOrMinusOneIsInvalidProvides a base class for Win32 safe handle implementations in which the value of either 0 or -1 indicates an invalid handle.
Public classSafeNCryptHandleInfrastructure. Provides a safe handle that can be used by Cryptography Next Generation (CNG) objects.
Public classSafeNCryptKeyHandleProvides a safe handle that represents a key (NCRYPT_KEY_HANDLE).
Public classSafeNCryptProviderHandleProvides a safe handle that represents a key storage provider (NCRYPT_PROV_HANDLE).
Public classSafeNCryptSecretHandleProvides a safe handle that represents a secret agreement value (NCRYPT_SECRET_HANDLE).
Public classSafePipeHandleRepresents a wrapper class for a pipe handle.
Public classSafeWaitHandleRepresents a wrapper class for a wait handle.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft