pub type ExReleaseResourceAndLeaveCriticalRegion = unsafe extern "system" fn(resource: *mut ERESOURCE);