Microsoft.Win32.SafeHandles Namespace

Microsoft.Win32.SafeHandles 命名空间包含安全句柄类的抽象派生类,安全句柄类提供支持文件句柄和操作系统句柄的常见功能。 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.

CriticalHandleMinusOneIsInvalid

为 Win32 关键句柄实现提供基类,在这些实现中值为 -1 时表示无效句柄。Provides a base class for Win32 critical handle implementations in which the value of -1 indicates an invalid handle.

CriticalHandleZeroOrMinusOneIsInvalid

为 Win32 关键句柄实现提供基类,在这些实现中值为 0 或 -1 时都表示无效句柄。Provides a base class for Win32 critical handle implementations in which the value of either 0 or -1 indicates an invalid handle.

SafeAccessTokenHandle

提供 Windows 线程或进程访问令牌的安全句柄。Provides a safe handle to a Windows thread or process access token. 有关详细信息,请参阅访问令牌For more information, see Access Tokens.

SafeFileHandle

表示文件句柄的包装类。Represents a wrapper class for a file handle.

SafeHandleMinusOneIsInvalid

为 Win32 安全句柄实现提供基类,在这些实现中值为 -1 时表示无效句柄。Provides a base class for Win32 safe handle implementations in which the value of -1 indicates an invalid handle.

SafeHandleZeroOrMinusOneIsInvalid

为 Win32 安全句柄实现提供基类,在这些实现中,值为 0 或 -1 都表示无效句柄。Provides a base class for Win32 safe handle implementations in which the value of either 0 or -1 indicates an invalid handle.

SafeMemoryMappedFileHandle

提供一个表示用于顺序访问的内存映射文件的安全句柄。Provides a safe handle that represents a memory-mapped file for sequential access.

SafeMemoryMappedViewHandle

提供一个表示用于随机访问的非托管内存块的视图的安全句柄。Provides a safe handle that represents a view of a block of unmanaged memory for random access.

SafeNCryptHandle

提供了可被下一代加密技术 (CNG) 对象使用的安全句柄。Provides a safe handle that can be used by Cryptography Next Generation (CNG) objects.

SafeNCryptKeyHandle

提供了表示密钥 (NCRYPT_KEY_HANDLE) 的安全句柄。Provides a safe handle that represents a key (NCRYPT_KEY_HANDLE).

SafeNCryptProviderHandle

提供了表示密钥存储提供程序 (NCRYPT_PROV_HANDLE) 的安全句柄。Provides a safe handle that represents a key storage provider (NCRYPT_PROV_HANDLE).

SafeNCryptSecretHandle

提供了表示机密协议值 (NCRYPT_SECRET_HANDLE) 的安全句柄。Provides a safe handle that represents a secret agreement value (NCRYPT_SECRET_HANDLE).

SafePipeHandle

表示管道句柄的包装类。Represents a wrapper class for a pipe handle.

SafeProcessHandle

为一个进程句柄提供托管包装器。Provides a managed wrapper for a process handle.

SafeRegistryHandle

表示 Windows 注册表的安全句柄。Represents a safe handle to the Windows registry.

SafeWaitHandle

表示等待句柄的包装类。Represents a wrapper class for a wait handle.

SafeX509ChainHandle

提供了一个包装类,它表示 X.509 链对象的句柄。Provides a wrapper class that represents the handle of an X.509 chain object. 有关详细信息,请参阅 X509ChainFor more information, see X509Chain.

注解

这些类派生自System.Runtime.InteropServices.SafeHandleSystem.Runtime.InteropServices.CriticalHandle类。These classes are derived from the System.Runtime.InteropServices.SafeHandle and System.Runtime.InteropServices.CriticalHandle classes.