| 167 | } |
| 168 | |
| 169 | void InterProcessCommunicator::sendBringToFront() |
| 170 | { |
| 171 | HWND hWnd = InterProcessCommunicatorPrivate::findMessageWindow(); |
| 172 | if (hWnd == NULL) |
| 173 | return; |
| 174 | |
| 175 | DWORD processId; |
| 176 | if (GetWindowThreadProcessId(hWnd, &processId)) { |
| 177 | AllowSetForegroundWindow(processId); |
| 178 | } |
| 179 | |
| 180 | COPYDATASTRUCT cds; |
| 181 | cds.dwData = TW_BRING_TO_FRONT_MSG; |
| 182 | cds.cbData = 0; |
| 183 | cds.lpData = NULL; |
| 184 | SendMessageA(hWnd, WM_COPYDATA, 0, reinterpret_cast<LPARAM>(&cds)); |
| 185 | } |
| 186 | |
| 187 | void InterProcessCommunicator::sendOpenFile(const QString & path, const int position) |
| 188 | { |
no outgoing calls
no test coverage detected