• Home
  • Raw
  • Download

Lines Matching refs:overlapped

89     OVERLAPPED overlapped;  member
110 Py_CancelIoEx(self->handle, &self->overlapped) && in overlapped_dealloc()
111 GetOverlappedResult(self->handle, &self->overlapped, &bytes, TRUE)) in overlapped_dealloc()
132 CloseHandle(self->overlapped.hEvent); in overlapped_dealloc()
138 CloseHandle(self->overlapped.hEvent); in overlapped_dealloc()
209 res = GetOverlappedResult(self->handle, &self->overlapped, &transferred, in _winapi_Overlapped_GetOverlappedResult_impl()
269 res = Py_CancelIoEx(self->handle, &self->overlapped); in _winapi_Overlapped_cancel_impl()
291 offsetof(OverlappedObject, overlapped) + offsetof(OVERLAPPED, hEvent),
349 memset(&self->overlapped, 0, sizeof(OVERLAPPED)); in new_overlapped()
352 self->overlapped.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL); in new_overlapped()
397 OverlappedObject *overlapped = NULL; in _winapi_ConnectNamedPipe_impl() local
400 overlapped = new_overlapped(handle); in _winapi_ConnectNamedPipe_impl()
401 if (!overlapped) in _winapi_ConnectNamedPipe_impl()
407 overlapped ? &overlapped->overlapped : NULL); in _winapi_ConnectNamedPipe_impl()
410 if (overlapped) { in _winapi_ConnectNamedPipe_impl()
415 overlapped->pending = 1; in _winapi_ConnectNamedPipe_impl()
417 SetEvent(overlapped->overlapped.hEvent); in _winapi_ConnectNamedPipe_impl()
419 Py_DECREF(overlapped); in _winapi_ConnectNamedPipe_impl()
422 return (PyObject *) overlapped; in _winapi_ConnectNamedPipe_impl()
1387 OverlappedObject *overlapped = NULL; in _winapi_ReadFile_impl() local
1393 overlapped = new_overlapped(handle); in _winapi_ReadFile_impl()
1394 if (!overlapped) { in _winapi_ReadFile_impl()
1399 overlapped->read_buffer = buf; in _winapi_ReadFile_impl()
1404 overlapped ? &overlapped->overlapped : NULL); in _winapi_ReadFile_impl()
1409 if (overlapped) { in _winapi_ReadFile_impl()
1412 overlapped->pending = 1; in _winapi_ReadFile_impl()
1414 Py_DECREF(overlapped); in _winapi_ReadFile_impl()
1418 return Py_BuildValue("NI", (PyObject *) overlapped, err); in _winapi_ReadFile_impl()
1639 OverlappedObject *overlapped = NULL; in _winapi_WriteFile_impl() local
1642 overlapped = new_overlapped(handle); in _winapi_WriteFile_impl()
1643 if (!overlapped) in _winapi_WriteFile_impl()
1645 buf = &overlapped->write_buffer; in _winapi_WriteFile_impl()
1651 Py_XDECREF(overlapped); in _winapi_WriteFile_impl()
1658 overlapped ? &overlapped->overlapped : NULL); in _winapi_WriteFile_impl()
1663 if (overlapped) { in _winapi_WriteFile_impl()
1666 overlapped->pending = 1; in _winapi_WriteFile_impl()
1668 Py_DECREF(overlapped); in _winapi_WriteFile_impl()
1672 return Py_BuildValue("NI", (PyObject *) overlapped, err); in _winapi_WriteFile_impl()