Microsoft.Win32.SafeHandles
TOC
Collapse the table of content
Expand the table of content

Microsoft.Win32.SafeHandles Namespace

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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 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 classSafeWaitHandleRepresents a wrapper class for a wait handle.

Show:
© 2017 Microsoft