| 185 | } |
| 186 | |
| 187 | void InterProcessCommunicator::sendOpenFile(const QString & path, const int position) |
| 188 | { |
| 189 | HWND hWnd = InterProcessCommunicatorPrivate::findMessageWindow(); |
| 190 | if (hWnd == NULL) |
| 191 | return; |
| 192 | |
| 193 | QByteArray ba = path.toUtf8() + "\n" + QByteArray::number(position); |
| 194 | COPYDATASTRUCT cds; |
| 195 | cds.dwData = TW_OPEN_FILE_MSG; |
| 196 | cds.cbData = ba.length(); |
| 197 | cds.lpData = ba.data(); |
| 198 | SendMessageA(hWnd, WM_COPYDATA, 0, reinterpret_cast<LPARAM>(&cds)); |
| 199 | } |
| 200 | |
| 201 | void InterProcessCommunicator::sendInsertText(const QString & text) |
| 202 | { |
no test coverage detected