Re[2]: How to open file on Network (ZwOpenFile/ZwCreateFile)?

CreateFileW converts DOS names to NT names using
RtlDosPathNameToNtPathName_U. This function properly converts
names that begin with "C:", "\?\C:" and “\Server\Share”.

Paths that begin with “\Server\Share” are converted to
“??\UNC\Server\Share”, I guess that’s the way that should
always work.

However, the function RtlDosPathNameToNtPathName_U
may not always produce desired results, if:

  1. the path is already an NT name, beginning with "??"
  2. the path contains symbolic link, like “\SystemRoot\System32.…”
  3. the path is a full qualified NT name “\Device\Harddiskvolume1.…”

According to my knowledge, these cases may also depend on Windows
versions, the above was observed on Windows NT 4.0, but Vista’s
version, for example, leaves paths beginning with "??" unchanged.

L.