When you generate a function that returns BOOL - like EnumWindows - it assumes that .ok() can be called to turn it into a Result. This extension is only available in the windows crate, but ideally the bindings should not depend on the windows crate directly.