Microsoft.Win32.SafeHandles.SafeHandleMinusOneIsInvalid Class

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

See Also: SafeHandleMinusOneIsInvalid Members

Syntax

public abstract class SafeHandleMinusOneIsInvalid : System.Runtime.InteropServices.SafeHandle

Remarks

This class derives from the System.Runtime.InteropServices.SafeHandle class. It describes the format of an invalid handle that uses a value of -1. Further derivations of this class (for example, file or registry handles) can specialize this further. See the Microsoft.Win32.SafeHandles.SafeFileHandle class for an example of a class that derives from Microsoft.Win32.SafeHandles.SafeHandleMinusOneIsInvalid.

Requirements

Namespace: Microsoft.Win32.SafeHandles
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0