Returns the full NetWare path for the desired name space associated with the specified path
#include <nwnamspc.h>
or
#include <nwcalls.h>
NWCCODE N_API NWGetNSPath (
NWCONN_HANDLE conn,
nuint8 dirHandle,
nuint16 fileFlag,
nuint8 srcNamSpc,
nuint8 dstNamSpc,
NW_NS_PATH N_FAR *NSPath);
uses calwin32
Function NWGetNSPath
(conn : NWCONN_HANDLE;
dirHandle : nuint8;
fileFlag : nuint16;
srcNamSpc : nuint8;
dstNamSpc : nuint8;
Var NSPath : NW_NS_PATH
) : NWCCODE;
(IN) Specifies the NetWare server connection handle.
(IN) Specifies the directory handle associated with the desired name space.
(IN) Specifies whether the source path ends with a file or a directory name:
0 = directory name 1 = file name
(IN) Specifies the name space used for srcPath in NSPath (see Section 20.5, Name Space Flag Values).
(IN) Specifies the name space for the return path (see Section 20.5, Name Space Flag Values).
(IN/OUT) Points to NW_NS_PATH.
These are common return values; see Return Values (Return Values for C) for more information.
A full path includes the volume name. For example:
volume:path\path
If the fileFlag parameter is set to 0 (indicating a directory name is being passed) and a file name is passed, INVALID_PARAMETER will be returned. The same error will be returned if the fileFlag parameter is set to 1 (indicating a file name is being passed) and a directory name is passed.
NWGetNSPath returns only the directory path name even if a file name was passed.
On NetWare server versions 3.12 and before, NWGetNSPath will return INVALID_PATH when used to return the full path of a root file.