mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
_winapi.NULL
This commit is contained in:
committed by
Jeong, YunWon
parent
75415090bd
commit
3b0802535d
@@ -57,6 +57,9 @@ mod _winapi {
|
||||
UI::WindowsAndMessaging::SW_HIDE,
|
||||
};
|
||||
|
||||
#[pyattr]
|
||||
const NULL: isize = 0;
|
||||
|
||||
#[pyfunction]
|
||||
fn CloseHandle(handle: HANDLE) -> WindowsSysResult<BOOL> {
|
||||
WindowsSysResult(unsafe { windows_sys::Win32::Foundation::CloseHandle(handle.0) })
|
||||
|
||||
Reference in New Issue
Block a user