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
我以为在
cout << "Hello world"
cout对象有一个运算符重载,因此我们可以传递strings给cout对象的成员函数。
cout
strings
但是在一些示例代码中,我看到一个类中定义了一个运算符重载。<