What's the difference between PATH_NOT_FOUND and NAME_NOT_FOUND

Posted by Benjamin on Stack Overflow See other posts from Stack Overflow or by Benjamin
Published on 2010-05-06T13:32:26Z Indexed on 2010/05/06 13:38 UTC
Read the original article Hit count: 189

Filed under:
|
|

In Win32 layer, we often meet 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?

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.

© Stack Overflow or respective owner

Related posts about Windows

Related posts about filesystems