| 52 | } |
| 53 | |
| 54 | static DWORD WINAPI ReadThreadProc(LPVOID p) |
| 55 | { |
| 56 | char buffer[1024]; |
| 57 | DWORD nRead = 0; |
| 58 | while (ReadFile(GetStdHandle(STD_INPUT_HANDLE), buffer, 1024, &nRead, 0)) |
| 59 | { |
| 60 | buffer[nRead] = 0; |
| 61 | SendMessage(EditWindow, EM_SETSEL, (WPARAM)-1, (LPARAM)-1); |
| 62 | SendMessage(EditWindow, EM_REPLACESEL, (WPARAM)0, (LPARAM)buffer); |
| 63 | } |
| 64 | return (DWORD)p; |
| 65 | } |
| 66 | |
| 67 | void MainEventLoop() |
| 68 | { |
nothing calls this directly
no test coverage detected