C# Class UiaControlsTest.TargetApp

Inheritance: IDisposable
Show file Open project: TestStack/uia-custom-pattern-managed Class Usage Examples

Public Methods

Method Description
Close ( ) : void
Dispose ( ) : void
Start ( ) : void
TargetApp ( string cmdLine ) : System
TargetApp ( string cmdLine, string args ) : System
TryOpenExisting ( ) : bool
WaitForWindow ( int pid, string className, string windowTitle ) : IntPtr

Private Methods

Method Description
GetClassName ( IntPtr hwnd, StringBuilder str, int nMaxCount ) : int
GetDesktopWindow ( ) : IntPtr
GetWindow ( IntPtr hwnd, int dir ) : IntPtr
GetWindowText ( IntPtr hwnd, StringBuilder str, int nMaxCount ) : int
GetWindowThreadProcessId ( IntPtr hwnd, int &pid ) : int
IsWindowVisible ( IntPtr hwnd ) : bool
PostMessage ( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam ) : IntPtr
TryFindWindowNow ( int pid, string className, string windowTitle ) : IntPtr
WaitForWindow ( ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Start() public method

public Start ( ) : void
return void

TargetApp() public method

public TargetApp ( string cmdLine ) : System
cmdLine string
return System

TargetApp() public method

public TargetApp ( string cmdLine, string args ) : System
cmdLine string
args string
return System

TryOpenExisting() public method

public TryOpenExisting ( ) : bool
return bool

WaitForWindow() public static method

public static WaitForWindow ( int pid, string className, string windowTitle ) : IntPtr
pid int
className string
windowTitle string
return System.IntPtr