MCPcopy Create free account
hub / github.com/Kitware/VTK / ReadThreadProc

Function ReadThreadProc

Utilities/OutputWindowProcess/vtkWin32OutputWindowProcess.c:54–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54static 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
67void MainEventLoop()
68{

Callers

nothing calls this directly

Calls 1

ReadFileFunction · 0.50

Tested by

no test coverage detected