Ben*_*min 5 windows filesystems winapi
在Win32层,我们经常会遇到ERROR_PATH_NOT_FOUND,ERROR_NAME_NOT_FOUND.
When does WinAPI(eg CreateFileW, RemoveDirectoryW) return these values?
And What's the difference?
If I write a file system driver, when do I set STATUS_OBJECT_PATH_NOT_FOUND or STATUS_OBJECT_NAME_NOT_FOUND?
How do you determine?
I'm so confused.
Is there anyone who can explain clearly?
Or are there any documents explain this? I couldn't find them.
Thanks in advance.
ERROR_NAME_NOT_FOUND不是标准 Win32 API 错误代码。采用文件名的文件相关 API 返回的典型错误是ERROR_FILE_NOT_FOUND和ERROR_PATH_NOT_FOUND。确定要返回什么错误代码的最佳方法是使用 WDK 示例作为指导。create.c例如,cdfs 示例的源代码文件。STATUS_OBJECT_PATH_NOT_FOUND如果找不到目录或STATUS_OBJECT_NAME_NOT_FOUND文件,则返回。
| 归档时间: |
|
| 查看次数: |
1887 次 |
| 最近记录: |