Parses a path and returns the connection handle, directory handle, and new path to be used by subsequent NetWare requests
#include <nwdpath.h>
or
#include <nwcalls.h>
N_EXTERN_LIBRARY(NWCCODE) NWParseNetWarePath (
const nstr8 N_FAR *path,
NWCONN_HANDLE N_FAR *conn,
NWDIR_HANDLE N_FAR *dirHandle,
pnstr8 newPath);
uses calwin32
Function NWParseNetWarePath
(const path : pnstr8;
Var conn : NWCONN_HANDLE;
Var dirHandle : NWDIR_HANDLE;
newPath : pnstr8
) : NWCCODE;
(IN) Points to the path (in capital letters) being parsed.
(OUT) Points to the NetWare server connection handle.
(OUT) Points to the directory handle.
(OUT) Points to the new path, relative to the directory handle—this parameter should be a buffer of at least 256 characters.
These are common return values; see Return Values (Return Values for C) for more information.
NWParseNetWarePath does not check the validity of any volume or directory names in the path string.
path must be specified in capital letters or the call to NWParseNetWarePath fails.
If the path to be parsed is relative to the current directory, NWParseNetWarePath assumes the current drive and returns a complete path on all platforms. If the path is on a local drive, NWParseNetWarePath returns NOT_MY_RESOURCE. If the path specifies a NetWare server name and there are no connections to that NetWare server, NWParseNetWarePath returns NO_CONNECTION_TO_SERVER.
Under all platforms, NWParseNetWarePath returns zero (0) in dirHandle and a full path (volume:path) in newPath.