CriticalHandleZeroOrMinusOneIsInvalid Class
Assembly: mscorlib (in mscorlib.dll)
'Declaration Public MustInherit Class CriticalHandleZeroOrMinusOneIsInvalid Inherits CriticalHandle 'Usage Dim instance As CriticalHandleZeroOrMinusOneIsInvalid
public abstract class CriticalHandleZeroOrMinusOneIsInvalid extends CriticalHandle
public abstract class CriticalHandleZeroOrMinusOneIsInvalid extends CriticalHandle
Not applicable.
This class derives from the System.Runtime.InteropServices.CriticalHandle class. It describes the format of an invalid handle. For example, some handles use -1 as an invalid handle value, while others use 0. Further derivations of this class (for example, file or registry handles) can specialize this further.
Use the CriticalHandleZeroOrMinusOneIsInvalid class when you need to wrap an unmanaged resource that does not have an existing managed wrapper.
Note: |
|---|
| See the CriticalHandle class for important information on critical handle security and thread safety. |
- SecurityPermission for permission to call unmanaged code. Demand value: LinkDemand. Associated enumeration: SecurityPermissionFlag.UnmanagedCode
- SecurityPermission for permission to call unmanaged code. Demand value: InheritanceDemand. Associated enumeration: SecurityPermissionFlag.UnmanagedCode
System.Runtime.ConstrainedExecution.CriticalFinalizerObject
System.Runtime.InteropServices.CriticalHandle
Microsoft.Win32.SafeHandles.CriticalHandleZeroOrMinusOneIsInvalid
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Note: