C# Class PInvoke.WtsApi32.SafeTerminalServerHandle

Represents a Wts server handle that can be closed with WTSCloseServer(IntPtr).
Inheritance: System.Runtime.InteropServices.SafeHandle
Mostra file Open project: AArnott/pinvoke

Public Properties

Property Type Description
Null SafeTerminalServerHandle

Public Methods

Method Description
SafeTerminalServerHandle ( ) : System

Initializes a new instance of the SafeTerminalServerHandle class.

SafeTerminalServerHandle ( IntPtr preexistingHandle, bool ownsHandle = true ) : System

Initializes a new instance of the SafeTerminalServerHandle class.

Protected Methods

Method Description
ReleaseHandle ( ) : bool

Method Details

ReleaseHandle() protected method

protected ReleaseHandle ( ) : bool
return bool

SafeTerminalServerHandle() public method

Initializes a new instance of the SafeTerminalServerHandle class.
public SafeTerminalServerHandle ( ) : System
return System

SafeTerminalServerHandle() public method

Initializes a new instance of the SafeTerminalServerHandle class.
public SafeTerminalServerHandle ( IntPtr preexistingHandle, bool ownsHandle = true ) : System
preexistingHandle System.IntPtr An object that represents the pre-existing handle to use.
ownsHandle bool /// to have the native handle released when this safe handle is disposed or finalized; /// otherwise. ///
return System

Property Details

Null public_oe static_oe property

A handle that may be used in place of IntPtr.Zero.
public static SafeTerminalServerHandle Null
return SafeTerminalServerHandle