Lines Matching refs:handle

158   HANDLE handle = NULL;  in read_wincon()  local
163 handle = GetStdHandle(STD_INPUT_HANDLE); in read_wincon()
169 if(GetConsoleMode(handle, &mode)) { in read_wincon()
170 success = ReadConsole(handle, buf, curlx_uztoul(count), &rcount, NULL); in read_wincon()
173 success = ReadFile(handle, buf, curlx_uztoul(count), &rcount, NULL); in read_wincon()
190 HANDLE handle = NULL; in write_wincon() local
195 handle = GetStdHandle(STD_OUTPUT_HANDLE); in write_wincon()
198 handle = GetStdHandle(STD_ERROR_HANDLE); in write_wincon()
204 if(GetConsoleMode(handle, &mode)) { in write_wincon()
205 success = WriteConsole(handle, buf, curlx_uztoul(count), &wcount, NULL); in write_wincon()
208 success = WriteFile(handle, buf, curlx_uztoul(count), &wcount, NULL); in write_wincon()
443 HANDLE handle; /* actual handle to wait for during select */ member
455 HANDLE signal, handle, handles[2]; in select_ws_wait_thread() local
463 handle = data->handle; in select_ws_wait_thread()
465 handles[1] = handle; in select_ws_wait_thread()
473 type = GetFileType(handle); in select_ws_wait_thread()
489 size.LowPart = GetFileSize(handle, &length); in select_ws_wait_thread()
495 pos.LowPart = SetFilePointer(handle, 0, &pos.HighPart, FILE_CURRENT); in select_ws_wait_thread()
507 logmsg("[select_ws_wait_thread] data available, DISK: %p", handle); in select_ws_wait_thread()
523 if(GetConsoleMode(handle, &ret)) { in select_ws_wait_thread()
526 if(PeekConsoleInput(handle, &inputrecord, 1, &length)) { in select_ws_wait_thread()
530 ReadConsoleInput(handle, &inputrecord, 1, &length); in select_ws_wait_thread()
536 logmsg("[select_ws_wait_thread] data available, CHAR: %p", handle); in select_ws_wait_thread()
553 if(PeekNamedPipe(handle, NULL, 0, NULL, &length, NULL)) { in select_ws_wait_thread()
572 logmsg("[select_ws_wait_thread] pipe closed, PIPE: %p", handle); in select_ws_wait_thread()
576 logmsg("[select_ws_wait_thread] data available, PIPE: %p", handle); in select_ws_wait_thread()
585 logmsg("[select_ws_wait_thread] data available, HANDLE: %p", handle); in select_ws_wait_thread()
593 static HANDLE select_ws_wait(HANDLE handle, HANDLE signal, HANDLE abort) in select_ws_wait() argument
606 data->handle = handle; in select_ws_wait()
637 HANDLE abort, signal, handle, *handles; in select_ws() local
723 handle = GetStdHandle(STD_INPUT_HANDLE); in select_ws()
724 handle = select_ws_wait(handle, signal, abort); in select_ws()
725 if(handle) { in select_ws()
728 data[nth].thread = handle; in select_ws()
777 handle = (HANDLE)wsasock; in select_ws()
778 handle = select_ws_wait(handle, signal, abort); in select_ws()
779 if(handle) { in select_ws()
782 data[nth].thread = handle; in select_ws()
820 handle = handles[i]; in select_ws()
825 WaitForSingleObjectEx(handle, 0, FALSE) == WAIT_OBJECT_0) { in select_ws()
840 error = WSAEnumNetworkEvents(wsasock, handle, &wsaevents); in select_ws()