STATUS_BAD_NETWORK_NAME vs STATUS_BAD_NETWORK_PATH

Hi all,

Looking at the Microsoft web page about IOCTL_REDIR_QUERY_PATH we have:
http://msdn.microsoft.com/en-us/library/ff556761(VS.85).aspx

STATUS_BAD_NETWORK_PATH
The network path cannot be located. The machine name (\server, for example) is not valid or the network redirector cannot resolve the machine name (using whatever name resolution mechanisms are available).

STATUS_BAD_NETWORK_NAME
The specified share name cannot be found on the remote server. The machine name (\server, for example) is valid, but specified share name cannot be found on the remote server.

But from my WDK documentation (6000 and 7600.16385.1) I have these status with inverted description as follows:

STATUS_BAD_NETWORK_PATH
The specified share name cannot be found on the remote server. This error can occur if the machine name (\server, for example) is valid, but specified share name cannot be found on the remote server.

STATUS_BAD_NETWORK_NAME
The network path cannot be located. This error can occur if the machine name (\server, for example) is not valid or the network redirector cannot resolve the machine name (using whatever name resolution mechanisms are available).

Anyone knows which is the correct one?

Regards,

Fernando Roberto da Silva
DriverEntry Kernel Development
http://www.driverentry.com.br

Usually the MSDN documentation is updated more frequently and the WDK one is
a snapshot of the same documentation at the time a WDK build is prepared.
Anyway, I have the same documentation and I don’t see this, meaning that it
has the same mapping as the current MSDN page (this is the URL for the
equivalent MSDN page in the local WDK doco:
ms-help://MS.WDK.v10.7600.091201/IFSK_d/hh/IFSK_d/RDR_Ch4WritingRedirector_8
2fdb768-0d21-4de9-9604-225f145954cd.xml.htm).

Also, when looking in ntstatus.h (for 7600.16385.1) I get:

//
// MessageId: STATUS_BAD_NETWORK_PATH
//
// MessageText:
//
// The network path cannot be located.
//
#define STATUS_BAD_NETWORK_PATH ((NTSTATUS)0xC00000BEL)

And

//
// MessageId: STATUS_BAD_NETWORK_NAME
//
// MessageText:
//
// {Network Name Not Found}
// The specified share name cannot be found on the remote server.
//
#define STATUS_BAD_NETWORK_NAME ((NTSTATUS)0xC00000CCL)

So I guess the MSDN page is the right one.

Thanks,
Alex.

> Anyone knows which is the correct one?

C:\Users\maxim>net view \badname
System error 53 has occurred.

The network path was not found.

So, bad server name is Win32 error 53. You can look at what is the correct NTSTATUS value.

Below is the bad share name and good server name:

C:\Users\maxim>net use \compaq\badshare
System error 1920 has occurred.

The file cannot be accessed by the system.

The client OS is 2008 non-R2 x64.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com