C# Класс Hawkeye.Shell

Наследование: IHawkeyeHost
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Attach() публичный Метод

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.
Результат void

CanInject() публичный Метод

Determines whether Hawkeye can be injected given the specified window info.
public CanInject ( IWindowInfo info ) : bool
info IWindowInfo The window info.
Результат bool

Close() публичный Метод

Operations that should be realized before we close Hawkeye.
public Close ( ) : void
Результат void

GetLogServiceFactory() публичный Метод

Gets the default log service factory.
public GetLogServiceFactory ( ) : ILogServiceFactory
Результат ILogServiceFactory

GetLogger() публичный Метод

public GetLogger ( Type type ) : ILogService
type System.Type
Результат ILogService

GetSettings() публичный Метод

public GetSettings ( string key ) : ISettingsStore
key string
Результат ISettingsStore

Inject() публичный Метод

Attaches the specified info.
public Inject ( IWindowInfo info ) : void
info IWindowInfo The info.
Результат void

Run() публичный Метод

Runs the Hawkeye application.
public Run ( ) : void
Результат void

Run() публичный Метод

Runs the Hawkeye application.
public Run ( IntPtr windowToSpy, IntPtr windowToKill ) : void
windowToSpy IntPtr The window to spy.
windowToKill IntPtr The window to kill.
Результат void

Shell() публичный Метод

Initializes a new instance of the Shell class.
public Shell ( ) : System
Результат System