Maps the target drive to the specified directory path
#include <nwdpath.h>
or
#include <nwcalls.h>
N_EXTERN_LIBRARY(NWCCODE) NWSetDriveBase (
nuint16 driveNum,
NWCONN_HANDLE conn,
NWDIR_HANDLE dirHandle,
const nstr8 N_FAR *dirPath,
nuint16 driveScope);
uses calwin32
Function NWSetDriveBase
(driveNum : nuint16;
conn : NWCONN_HANDLE;
dirHandle : NWDIR_HANDLE;
dirPath : pnstr8;
driveScope : nuint16
) : NWCCODE;
(IN) Specifies the drive number of the drive being mapped (0=current, 1=A, 2=B,. . .).
(IN) Specifies the NetWare server connection handle to which the drive is mapped.
(IN) Specifies the directory handle associated with dirPath.
(IN) Points to the directory path the drive will be mapped to. dirPath is relative to dirHandle, unless dirHandle is 0.
Reserved for Novell use only; must be 0.
These are common return values; see Return Values (Return Values for C) for more information.
If the specified drive number is zero, the current drive will be remapped to the specified path. For other drive numbers, if the target drive is already mapped, the mapping must be deleted by calling NWDeleteDriveBase before calling NWSetDriveBase.
Under all platforms, CD-ROM drives cannot be mapped.
The server name should not be specified in the dirPath parameter. Specify the server name in the conn parameter. Under NETX.EXE, the server name can be parsed, but VLMs do not parse out the server name.
Under NLM, INVALID_SHELL_CALL is always returned.