C# Class LazyCopy.Utilities.Native.SafeTokenHandle

Represents a wrapper class for a find handle used by the NativeMethods.OpenProcessToken function.
Inheritance: Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
Mostra file Open project: aleksk/LazyCopy

Public Methods

Method Description
SafeTokenHandle ( ) : Microsoft.Win32.SafeHandles

Initializes a new instance of the SafeTokenHandle class.

Protected Methods

Method Description
ReleaseHandle ( ) : bool

When overridden in a derived class, executes the code required to free the handle.

Method Details

ReleaseHandle() protected method

When overridden in a derived class, executes the code required to free the handle.
protected ReleaseHandle ( ) : bool
return bool

SafeTokenHandle() public method

Initializes a new instance of the SafeTokenHandle class.
public SafeTokenHandle ( ) : Microsoft.Win32.SafeHandles
return Microsoft.Win32.SafeHandles