(error: u32)
| 504 | } |
| 505 | |
| 506 | fn file_info_error_is_trustworthy(error: u32) -> bool { |
| 507 | use windows_sys::Win32::Foundation; |
| 508 | matches!( |
| 509 | error, |
| 510 | Foundation::ERROR_FILE_NOT_FOUND |
| 511 | | Foundation::ERROR_PATH_NOT_FOUND |
| 512 | | Foundation::ERROR_NOT_READY |
| 513 | | Foundation::ERROR_BAD_NET_NAME |
| 514 | | Foundation::ERROR_BAD_NETPATH |
| 515 | | Foundation::ERROR_BAD_PATHNAME |
| 516 | | Foundation::ERROR_INVALID_NAME |
| 517 | | Foundation::ERROR_FILENAME_EXCED_RANGE |
| 518 | ) |
| 519 | } |
| 520 | |
| 521 | /// _testFileTypeByHandle - test file type using an open handle |
| 522 | fn _test_file_type_by_handle( |
no outgoing calls
no test coverage detected