C# Class Hawkeye.HawkeyeApplication

The root class representing the Hawkeye Application.
Afficher le fichier Open project: odalet/Hawkeye2

Méthodes publiques

Méthode 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

Méthode Description
HawkeyeApplication ( ) : System

Initializes the HawkeyeApplication class.

Method Details

Attach() public static méthode

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.
Résultat void

CanInject() public static méthode

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

Close() public static méthode

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

Inject() public static méthode

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

Run() public static méthode

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

Run() public static méthode

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.
Résultat void