Deletes a network drive mapping
#include <nwdpath.h>
or
#include <nwcalls.h>
N_EXTERN_LIBRARY( NWCCODE )NWDeleteDriveBase (
nuint16 driveNum,
nuint16 driveScope);
uses calwin32
Function NWDeleteDriveBase
(driveNum : nuint16;
driveScope : nuint16
) : NWCCODE;
(IN) Specifies the drive number whose mapping is being deleted (A=1, B=2, . . .).
Reserved for Novell® use only; must be 0.
These are common return values; see Return Values (Return Values for C) for more information.
If driveNum is zero, the current drive will be deleted if it belongs to the NetWare® OS.
Most operating systems will determine if the path is valid before NWDeleteDriveBase returns.
Under Windows 95 and Windows 98, 0x0003 Path Not Found will be returned if the path is invalid.
Under Windows NT, INVALID_PARAMETER will be returned if an unmapped drive is being referenced. INVALID_DRIVE_NUM will be returned if an invalid drive number is being used.
Under NLM, INVALID_SHELL_CALL is always returned.