(event: WinHandle, vm: &VirtualMachine)
| 1263 | /// SetEvent - Set the specified event object to the signaled state. |
| 1264 | #[pyfunction] |
| 1265 | fn SetEvent(event: WinHandle, vm: &VirtualMachine) -> PyResult<()> { |
| 1266 | use windows_sys::Win32::System::Threading::SetEvent as WinSetEvent; |
| 1267 | |
| 1268 | let ret = unsafe { WinSetEvent(event.0) }; |
| 1269 | |
| 1270 | if ret == 0 { |
| 1271 | return Err(vm.new_last_os_error()); |
| 1272 | } |
| 1273 | |
| 1274 | Ok(()) |
| 1275 | } |
| 1276 | |
| 1277 | #[derive(FromArgs)] |
| 1278 | struct WriteFileArgs { |
no test coverage detected