I’m looking for format for opening network files and shares by ZwOpenFile().
MSDN has information only for local devices and files: L"\??\X:…" or L"\DosDevices\X:…".
But which format may be used for network shares as L"\Server\Share" or files L"\Server\Share.…"?
Thanks & Regards,
MG.
If the remote drive has a drive letter you can use the “\??\Z:\…”
syntax.
If you want to open it as a UNC path you can use
“\UNC\\” syntax.
There are other ways as well
“\Device\LanmanagerRedirector\server\share\” for example, or
DFS specific names, etc.
If you really want to see valid formats for the name, I’d suggest using
IRP Tracker and Explorer (or other applications) to see the name that is
actually presented to ZwCreateFile.
Tony
OSR