C# Class PInvoke.User32.SafeEventHookHandle

Represents a windows event Hook that can be removed with UnhookWinEvent.
Inheritance: System.Runtime.InteropServices.SafeHandle
Show file Open project: AArnott/pinvoke

Public Properties

Property Type Description
Null SafeEventHookHandle

Public Methods

Method Description
SafeEventHookHandle ( ) : System

Initializes a new instance of the SafeEventHookHandle class.

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

Initializes a new instance of the SafeEventHookHandle class.

Protected Methods

Method Description
ReleaseHandle ( ) : bool

Method Details

ReleaseHandle() protected method

protected ReleaseHandle ( ) : bool
return bool

SafeEventHookHandle() public method

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

SafeEventHookHandle() public method

Initializes a new instance of the SafeEventHookHandle class.
public SafeEventHookHandle ( 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 static property

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