Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Windows 上使用WriteFileorReadFile进行卷读/写。如果它试图在坏扇区上读取或写入,WriteFile返回的错误代码是什么?ReadFile
WriteFile
ReadFile
底层NTSTATUS代码应为STATUS_DEVICE_DATA_ERROR(0xC000009C):
STATUS_DEVICE_DATA_ERROR
硬盘上有坏块(扇区)。
这将映射到ERROR_CRC(23)。
ERROR_CRC