C# Class Hawkeye.Shell

Inheritance: IHawkeyeHost
Show file Open project: odalet/Hawkeye2 Class Usage Examples

Public Methods

Method 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

Method 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 method

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.
return void

CanInject() public method

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

Close() public method

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

GetLogServiceFactory() public method

Gets the default log service factory.
public GetLogServiceFactory ( ) : ILogServiceFactory
return ILogServiceFactory

GetLogger() public method

public GetLogger ( Type type ) : ILogService
type System.Type
return ILogService

GetSettings() public method

public GetSettings ( string key ) : ISettingsStore
key string
return ISettingsStore

Inject() public method

Attaches the specified info.
public Inject ( IWindowInfo info ) : void
info IWindowInfo The info.
return void

Run() public method

Runs the Hawkeye application.
public Run ( ) : void
return void

Run() public method

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

Shell() public method

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