什么是 "I/O error 1785"?

What is "I/O error 1785"?

我在

的程序中得到 "I/O error "1785"

Vcl.FileCtrl.TDirectoryListBox.SetDirectory -> Vcl.FileCtrl.ProcessPath

我在 Delphi 的帮助中找不到对此的描述。

来自帮助文件:

All errors other than I/O errors and fatal errors are reported with the error codes returned by the operating system.

由于列出的所有I/O错误都在100..106范围内,而致命错误都在200..232范围内,按理说这是一个[=23] =] 错误,SysErrorMessage(1785) 会给你错误的描述:

The disk media is not recognized. It may not be formatted.

实际错误是ERROR_UNRECOGNIZED_MEDIA(感谢@JoachimIsaksson 查找它,所以我不必这样做)。