| 1144 | } |
| 1145 | |
| 1146 | BOOL CALLBACK BrowserFactory::FindIEBrowserHandles(HWND hwnd, LPARAM arg) { |
| 1147 | std::vector<HWND>* handles = reinterpret_cast<std::vector<HWND>*>(arg); |
| 1148 | |
| 1149 | // Could this be an Internet Explorer Server window? |
| 1150 | // 25 == "Internet Explorer_Server\0" |
| 1151 | char name[25]; |
| 1152 | if (::GetClassNameA(hwnd, name, 25) == 0) { |
| 1153 | // No match found. Skip |
| 1154 | return TRUE; |
| 1155 | } |
| 1156 | |
| 1157 | if (strcmp("Internet Explorer_Server", name) == 0) { |
| 1158 | handles->push_back(hwnd); |
| 1159 | } |
| 1160 | |
| 1161 | return TRUE; |
| 1162 | } |
| 1163 | |
| 1164 | BOOL CALLBACK BrowserFactory::FindEdgeBrowserHandles(HWND hwnd, LPARAM arg) { |
| 1165 | std::vector<HWND>* handles = reinterpret_cast<std::vector<HWND>*>(arg); |
nothing calls this directly
no outgoing calls
no test coverage detected