MCPcopy Index your code
hub / github.com/RustPython/RustPython / GetExitCodeProcess

Function GetExitCodeProcess

crates/vm/src/stdlib/_winapi.rs:599–609  ·  view source on GitHub ↗
(h: WinHandle, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

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> {

Callers

nothing calls this directly

Calls 3

WindowsSysResultClass · 0.85
as_mut_ptrMethod · 0.80
to_pyresultMethod · 0.45

Tested by

no test coverage detected