(wait_handle: isize, vm: &VirtualMachine)
| 1800 | |
| 1801 | #[pyfunction] |
| 1802 | fn UnregisterWait(wait_handle: isize, vm: &VirtualMachine) -> PyResult<()> { |
| 1803 | use windows_sys::Win32::System::Threading::UnregisterWait; |
| 1804 | |
| 1805 | let ret = unsafe { UnregisterWait(wait_handle as HANDLE) }; |
| 1806 | // Cleanup callback data regardless of UnregisterWait result |
| 1807 | // (callback may have already fired, or may never fire) |
| 1808 | cleanup_wait_callback_data(wait_handle); |
| 1809 | if ret == 0 { |
| 1810 | return Err(set_from_windows_err(0, vm)); |
| 1811 | } |
| 1812 | Ok(()) |
| 1813 | } |
| 1814 | |
| 1815 | #[pyfunction] |
| 1816 | fn UnregisterWaitEx(wait_handle: isize, event: isize, vm: &VirtualMachine) -> PyResult<()> { |
nothing calls this directly
no test coverage detected