Returns the status of the specified drive and, optionally, the associated connection reference and its path in various formats
#include <nwdpath.h>
or
#include <nwcalls.h>
N_EXTERN_LIBRARY (NWCCODE) NWGetDriveStatusConnRef (
nuint16 driveNum,
nuint16 pathFormat,
pnuint16 status,
pnuint32 connRef,
pnstr8 rootPath,
pnstr8 relPath,
pnstr8 fullPath);
uses calwin32
Function NWGetDriveStatusConnRef (
driveNum : nuint16;
pathFormat : nuint16;
status : pnuint16;
connRef : pnuint32;
rootPath : pnstr8;
relPath : pnstr8;
fullPath : pnstr8
) : NWCCODE;
(IN) Specifies the drive number for which to return the satus (A=1, B=2, C=3, ...). Pass 0 for the current drive.
(IN) Specifies the desired format for the return paths.
(OUT) Points to a bit mask indicating if the drive is local and/or networked.
(OUT) Points to the connection reference of the specified drive (optional).
(OUT) Points to the base path to which the specified drive is mapped (optional).
(OUT) Points to the path (relative to the rootPath parameter) to which the drive number is mapped (optional).
(OUT) Points to the full path of the specified drive if it is a network drive (optional).
These are common return values; see Return Values (Return Values for C) for more information.
NWGetDriveStatusConnRef does not work with local drives.
See Section 21.1, Path Parameters for input values and examples of returned information.
NW_LOCAL_DRIVE indicates the specified drive letter is lower than the first networked drive which usually defaults to F: and is set in the net.cfg file.
Under NLM, INVALID_SHELL_CALL is always returned.