C# Class Hawkeye.HawkeyeApplication

The root class representing the Hawkeye Application.
Exibir arquivo Open project: odalet/Hawkeye2

Public Methods

Method Description
Attach ( IntPtr targetWindowHandle, IntPtr hawkeyeWindowHandle ) : void

Attaches the (injected) Hawkeye application to the specified target window (and destroys the original Hawkeye window).

CanInject ( IWindowInfo info ) : bool

Determines whether Hawkeye can be injected given the specified window info.

Close ( ) : void

Operations that should be realized before we close Hawkeye.

Inject ( IWindowInfo info ) : void

Injects the Hawkeye application into the process owning the specified window.

Run ( ) : void

Runs the Hawkeye application.

Use this method to run Hawkeye in its own process.

Run ( IntPtr windowToSpy, IntPtr windowToKill ) : void

Runs the Hawkeye application.

Use this method to run Hawkeye in its own process.

Private Methods

Method Description
HawkeyeApplication ( ) : System

Initializes the HawkeyeApplication class.

Method Details

Attach() public static method

Attaches the (injected) Hawkeye application to the specified target window (and destroys the original Hawkeye window).
public static Attach ( IntPtr targetWindowHandle, IntPtr hawkeyeWindowHandle ) : void
targetWindowHandle System.IntPtr The target window.
hawkeyeWindowHandle System.IntPtr The original Hawkeye window.
return void

CanInject() public static method

Determines whether Hawkeye can be injected given the specified window info.
public static CanInject ( IWindowInfo info ) : bool
info IWindowInfo The window info.
return bool

Close() public static method

Operations that should be realized before we close Hawkeye.
public static Close ( ) : void
return void

Inject() public static method

Injects the Hawkeye application into the process owning the specified window.
public static Inject ( IWindowInfo info ) : void
info IWindowInfo The target window information.
return void

Run() public static method

Runs the Hawkeye application.
Use this method to run Hawkeye in its own process.
public static Run ( ) : void
return void

Run() public static method

Runs the Hawkeye application.
Use this method to run Hawkeye in its own process.
public static Run ( IntPtr windowToSpy, IntPtr windowToKill ) : void
windowToSpy System.IntPtr The window to spy.
windowToKill System.IntPtr The window to kill.
return void