Maps a volume number and directory number to a NetWare style path
#include <nwfileng.h>
int FEMapVolumeAndDirectoryToPath (
int volumeNumber,
LONG directoryNumber,
BYTE *pathString,
LONG *pathCount);
(IN) Specifies the volume number of the desired path.
(IN) Specifies the directory number of the desired path.
(OUT) Points to the NetWare style path string.
(OUT) Points to the path count of the returned path string.
See Return Values for C for more information.
The FEMapVolumeAndDirectoryToPath function gets a NetWare style path (pathname and path count) from a volume number and directory number.
FEMapVolumeAndDirectoryToPath relies on the current name space setting of the underlying thread. If that name space does not match the name space of the volume and directory to be mapped, the function returns 0x009C. This error can occur, for example, when the directory number comes from a file system monitoring hook, and the associated name space is something other than DOS.
To avoid the 0x009C error, call FEMapVolumeAndDirectoryToPath only if the name space of the underlying thread and the name space of the directory to be mapped can be guaranteed to be identical. Otherwise, call FEMapVolumeAndDirectoryToPathForNS, which allows you to specify the name space. You can also call SetCurrentNameSpace before and after calling FEMapVolumeAndDirectoryToPath to set and restore the current name space of the underlying thread.
0xFFFE (-2) is returned when the directory number has become invalid. This error occurs, for example, when the directory number comes from a FSHOOK_PRE_CLOSE file system monitoring hook, and a separate reporting procedure calls FEMapVolumeAndDirectoryToPath after the file has already been deleted.