void log_IE_window_handles( ImmediateSession & session )
{
  session.Log( "log_IE_window_handles" ) ;
  const wchar_t * IE_names[] = { L"IExplore.exe", L"AdblockPlusEngine.exe" } ;
  ProcessSnapshot snapshot ;
  ProcessCloser iec(snapshot, IE_names) ;
  log_single_window_handle_only_if_IE lp( session, iec ) ;
  EnumerateWindows( lp ) ;
}
void log_all_window_handles( ImmediateSession & session )
{
  session.Log( "log_all_window_handles" ) ;
  log_single_window_handle lp( session ) ;
  EnumerateWindows( lp ) ;
}
Exemple #3
0
/* Return an array of MoveWin::Window objects (wrapped MW_Window structures) */
VALUE MW_windows(VALUE module) {
    VALUE retval = rb_ary_new();
    EnumerateWindows(NULL, StoreWindows, (void *)retval);
    return retval;
}