not sure what `LockFileEx(hfile, flags, 0, 0, 0xFFFF0000, byref(overlapped))` returns but return it directly or `return bool(LockFileEx...`?