Microsoft.Win32.SafeHandles.CriticalHandleMinusOneIsInvalid Class

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

See Also: CriticalHandleMinusOneIsInvalid Members


public abstract class CriticalHandleMinusOneIsInvalid : System.Runtime.InteropServices.CriticalHandle


This class derives from the System.Runtime.InteropServices.CriticalHandle 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 System.Runtime.InteropServices.CriticalHandle class for important information on critical handle security and thread safety.


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