private bool EnumWindowsCallback(IntPtr handle, IntPtr extraParameter) {
int processId;
Interop.User32.GetWindowThreadProcessId(handle, out processId);
if (processId == _processId) {
if (IsMainWindow(handle)) {
_bestHandle = handle;
return false;
}
}
return true;
}
}