(h: WinHandle, vm: &VirtualMachine)
| 597 | |
| 598 | #[pyfunction] |
| 599 | fn GetExitCodeProcess(h: WinHandle, vm: &VirtualMachine) -> PyResult<u32> { |
| 600 | unsafe { |
| 601 | let mut ec = core::mem::MaybeUninit::uninit(); |
| 602 | WindowsSysResult(windows_sys::Win32::System::Threading::GetExitCodeProcess( |
| 603 | h.0, |
| 604 | ec.as_mut_ptr(), |
| 605 | )) |
| 606 | .to_pyresult(vm)?; |
| 607 | Ok(ec.assume_init()) |
| 608 | } |
| 609 | } |
| 610 | |
| 611 | #[pyfunction] |
| 612 | fn TerminateProcess(h: WinHandle, exit_code: u32) -> WindowsSysResult<i32> { |
nothing calls this directly
no test coverage detected