C# Class Hawkeye.Shell

Inheritance: IHawkeyeHost
Afficher le fichier Open project: odalet/Hawkeye2 Class Usage Examples

Méthodes publiques

Méthode Description
Attach ( IntPtr windowToSpy, IntPtr originalHawkeyeWindow ) : void

Injects the specified target 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.

GetLogServiceFactory ( ) : ILogServiceFactory

Gets the default log service factory.

GetLogger ( Type type ) : ILogService
GetSettings ( string key ) : ISettingsStore
Inject ( IWindowInfo info ) : void

Attaches the specified info.

Run ( ) : void

Runs the Hawkeye application.

Run ( IntPtr windowToSpy, IntPtr windowToKill ) : void

Runs the Hawkeye application.

Shell ( ) : System

Initializes a new instance of the Shell class.

Private Methods

Méthode Description
GetBootstrap ( Clr clr, Bitness bitness ) : string
Initialize ( ) : void
InitializeMainForm ( IntPtr windowToSpy ) : void
Log ( LogLevel level, string message, int appId ) : void
LogDebug ( string message, int appId ) : void
LogInfo ( string message, int appId ) : void
RaiseCurrentWindowInfoChanged ( ) : void

Method Details

Attach() public méthode

Injects the specified target window.
public Attach ( IntPtr windowToSpy, IntPtr originalHawkeyeWindow ) : void
windowToSpy System.IntPtr The target window.
originalHawkeyeWindow System.IntPtr The original hawkeye window.
Résultat void

CanInject() public méthode

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

Close() public méthode

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

GetLogServiceFactory() public méthode

Gets the default log service factory.
public GetLogServiceFactory ( ) : ILogServiceFactory
Résultat ILogServiceFactory

GetLogger() public méthode

public GetLogger ( Type type ) : ILogService
type System.Type
Résultat ILogService

GetSettings() public méthode

public GetSettings ( string key ) : ISettingsStore
key string
Résultat ISettingsStore

Inject() public méthode

Attaches the specified info.
public Inject ( IWindowInfo info ) : void
info IWindowInfo The info.
Résultat void

Run() public méthode

Runs the Hawkeye application.
public Run ( ) : void
Résultat void

Run() public méthode

Runs the Hawkeye application.
public Run ( IntPtr windowToSpy, IntPtr windowToKill ) : void
windowToSpy IntPtr The window to spy.
windowToKill IntPtr The window to kill.
Résultat void

Shell() public méthode

Initializes a new instance of the Shell class.
public Shell ( ) : System
Résultat System