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

Function CloseHandle

crates/vm/src/stdlib/_winapi.rs:91–93  ·  view source on GitHub ↗
(handle: WinHandle)

Source from the content-addressed store, hash-verified

89
90 #[pyfunction]
91 fn CloseHandle(handle: WinHandle) -> WindowsSysResult<i32> {
92 WindowsSysResult(unsafe { windows_sys::Win32::Foundation::CloseHandle(handle.0) })
93 }
94
95 /// CreateFile - Create or open a file or I/O device.
96 #[pyfunction]

Callers 15

CloseMethod · 0.85
closeMethod · 0.85
dropMethod · 0.85
dropMethod · 0.85
close_handleMethod · 0.85
py_newMethod · 0.85
delMethod · 0.85
win32_xstat_slow_implFunction · 0.85
chmodFunction · 0.85
_test_file_type_by_nameFunction · 0.85
_path_isdevdriveFunction · 0.85

Calls 1

WindowsSysResultClass · 0.85

Tested by

no test coverage detected