Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
winapi.ExitProcess
  • Loading branch information
youknowone committed Dec 7, 2025
commit 54ef8b7a561bf66ffecdf310e9b547b1f9be2e45
5 changes: 5 additions & 0 deletions crates/vm/src/stdlib/winapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,11 @@ mod _winapi {
}
}

#[pyfunction]
fn ExitProcess(exit_code: u32) {
unsafe { windows_sys::Win32::System::Threading::ExitProcess(exit_code) }
}

#[pyfunction]
fn NeedCurrentDirectoryForExePath(exe_name: PyStrRef) -> bool {
let exe_name = exe_name.as_str().to_wide_with_nul();
Expand Down