| 1086 | } |
| 1087 | |
| 1088 | BOOL CALLBACK BrowserFactory::FindBrowserWindow(HWND hwnd, LPARAM arg) { |
| 1089 | // Could this be an IE instance? |
| 1090 | // 8 == "IeFrame\0" |
| 1091 | // 21 == "Shell DocObject View\0" |
| 1092 | // 19 == "Chrome_WidgetWin_1" |
| 1093 | char name[21]; |
| 1094 | if (::GetClassNameA(hwnd, name, 21) == 0) { |
| 1095 | // No match found. Skip |
| 1096 | return TRUE; |
| 1097 | } |
| 1098 | |
| 1099 | if (strcmp(IE_FRAME_WINDOW_CLASS, name) != 0 && |
| 1100 | strcmp(SHELL_DOCOBJECT_VIEW_WINDOW_CLASS, name) != 0 && |
| 1101 | strcmp(ANDIE_FRAME_WINDOW_CLASS, name) != 0) { |
| 1102 | return TRUE; |
| 1103 | } |
| 1104 | |
| 1105 | return EnumChildWindows(hwnd, FindChildWindowForProcess, arg); |
| 1106 | } |
| 1107 | |
| 1108 | BOOL CALLBACK BrowserFactory::FindEdgeWindow(HWND hwnd, LPARAM arg) { |
| 1109 | // Could this be an EdgeChrome window? |
nothing calls this directly
no outgoing calls
no test coverage detected