Skip to main content

WaitCloseFn

Type Alias WaitCloseFn 

Source
pub type WaitCloseFn = unsafe extern "system" fn(HANDLE) -> BOOL;
Expand description

A Win32 routine that closes a wait target.

This is the shape Win32 close routines already have, so one can be passed directly with no shim: CloseHandle and FindCloseChangeNotification both match it. The return value is ignored – there is nothing a destructor could usefully do with a close failure.