Lines Matching refs:overlapped
102 OVERLAPPED overlapped; member
138 Py_CancelIoEx(self->handle, &self->overlapped) && in overlapped_dealloc()
139 GetOverlappedResult(self->handle, &self->overlapped, &bytes, TRUE)) in overlapped_dealloc()
160 CloseHandle(self->overlapped.hEvent); in overlapped_dealloc()
166 CloseHandle(self->overlapped.hEvent); in overlapped_dealloc()
251 res = GetOverlappedResult(self->handle, &self->overlapped, &transferred, in _winapi_Overlapped_GetOverlappedResult_impl()
311 res = Py_CancelIoEx(self->handle, &self->overlapped); in _winapi_Overlapped_cancel_impl()
333 offsetof(OverlappedObject, overlapped) + offsetof(OVERLAPPED, hEvent),
367 memset(&self->overlapped, 0, sizeof(OVERLAPPED)); in new_overlapped()
370 self->overlapped.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL); in new_overlapped()
417 OverlappedObject *overlapped = NULL; in _winapi_ConnectNamedPipe_impl() local
420 overlapped = new_overlapped(module, handle); in _winapi_ConnectNamedPipe_impl()
421 if (!overlapped) in _winapi_ConnectNamedPipe_impl()
427 overlapped ? &overlapped->overlapped : NULL); in _winapi_ConnectNamedPipe_impl()
430 if (overlapped) { in _winapi_ConnectNamedPipe_impl()
435 overlapped->pending = 1; in _winapi_ConnectNamedPipe_impl()
437 SetEvent(overlapped->overlapped.hEvent); in _winapi_ConnectNamedPipe_impl()
439 Py_DECREF(overlapped); in _winapi_ConnectNamedPipe_impl()
442 return (PyObject *) overlapped; in _winapi_ConnectNamedPipe_impl()
1532 OverlappedObject *overlapped = NULL; in _winapi_ReadFile_impl() local
1538 overlapped = new_overlapped(module, handle); in _winapi_ReadFile_impl()
1539 if (!overlapped) { in _winapi_ReadFile_impl()
1544 overlapped->read_buffer = buf; in _winapi_ReadFile_impl()
1549 overlapped ? &overlapped->overlapped : NULL); in _winapi_ReadFile_impl()
1554 if (overlapped) { in _winapi_ReadFile_impl()
1557 overlapped->pending = 1; in _winapi_ReadFile_impl()
1559 Py_DECREF(overlapped); in _winapi_ReadFile_impl()
1563 return Py_BuildValue("NI", (PyObject *) overlapped, err); in _winapi_ReadFile_impl()
1818 OverlappedObject *overlapped = NULL; in _winapi_WriteFile_impl() local
1821 overlapped = new_overlapped(module, handle); in _winapi_WriteFile_impl()
1822 if (!overlapped) in _winapi_WriteFile_impl()
1824 buf = &overlapped->write_buffer; in _winapi_WriteFile_impl()
1830 Py_XDECREF(overlapped); in _winapi_WriteFile_impl()
1837 overlapped ? &overlapped->overlapped : NULL); in _winapi_WriteFile_impl()
1842 if (overlapped) { in _winapi_WriteFile_impl()
1845 overlapped->pending = 1; in _winapi_WriteFile_impl()
1847 Py_DECREF(overlapped); in _winapi_WriteFile_impl()
1851 return Py_BuildValue("NI", (PyObject *) overlapped, err); in _winapi_WriteFile_impl()