| 1106 | } |
| 1107 | |
| 1108 | BOOL CALLBACK BrowserFactory::FindEdgeWindow(HWND hwnd, LPARAM arg) { |
| 1109 | // Could this be an EdgeChrome window? |
| 1110 | // 19 == "Chrome_WidgetWin_1" |
| 1111 | char name[20]; |
| 1112 | if (::GetClassNameA(hwnd, name, 20) == 0) { |
| 1113 | // No match found. Skip |
| 1114 | return TRUE; |
| 1115 | } |
| 1116 | |
| 1117 | // continue if it is not "Chrome_WidgetWin_1" |
| 1118 | if (strcmp(ANDIE_FRAME_WINDOW_CLASS, name) != 0) return TRUE; |
| 1119 | |
| 1120 | // continue if window does not belong to the target process |
| 1121 | DWORD process_id = NULL; |
| 1122 | ::GetWindowThreadProcessId(hwnd, &process_id); |
| 1123 | ProcessWindowInfo* process_window_info = reinterpret_cast<ProcessWindowInfo*>(arg); |
| 1124 | if (process_window_info->dwProcessId != process_id) { |
| 1125 | return TRUE; |
| 1126 | } |
| 1127 | |
| 1128 | return EnumChildWindows(hwnd, FindEdgeChildWindowForProcess, arg); |
| 1129 | } |
| 1130 | |
| 1131 | BOOL CALLBACK BrowserFactory::FindEdgeWindowIgnoringProcessMatch(HWND hwnd, LPARAM arg) { |
| 1132 | // Could this be an EdgeChrome window? |
nothing calls this directly
no outgoing calls
no test coverage detected