(handle: isize, vm: &VirtualMachine)
| 1970 | |
| 1971 | #[pyfunction] |
| 1972 | fn SetEvent(handle: isize, vm: &VirtualMachine) -> PyResult<()> { |
| 1973 | let ret = unsafe { windows_sys::Win32::System::Threading::SetEvent(handle as HANDLE) }; |
| 1974 | if ret == 0 { |
| 1975 | return Err(set_from_windows_err(0, vm)); |
| 1976 | } |
| 1977 | Ok(()) |
| 1978 | } |
| 1979 | |
| 1980 | #[pyfunction] |
| 1981 | fn ResetEvent(handle: isize, vm: &VirtualMachine) -> PyResult<()> { |
no test coverage detected