FEMapPathVolumeDirToVolumeDir

Maps a path consisting of a volume number, directory number, and pathname to a path consisting of a volume number and directory number

Local Servers:blocking
Remote Servers:N/A
NetWare Server:3.x, 4.x, 5.x, 6.x
Platform:NLM
Service:File Engine

Syntax

   #include <nwfileng.h>  
    
   int FEMapPathVolumeDirToVolumeDir  (  
      char   *pathName,   
      int     volumeNumber,   
      LONG    directoryNumber,   
      int    *newVolumeNumberP,   
      LONG   *newDirectoryNumberP); 
   

Parameters

pathName

(IN) Points to the pathname for which the volume and directory number are desired.

volumeNumber

(IN) Specifies the volume number on which the pathname is based.

directoryNumber

(IN) Specifies the directory number on which the pathname is based.

newVolumeNumberP

(OUT) Points to the returned volume number.

newDirectoryNumberP

(OUT) Points to the returned directory number.

Return Values

This function returns a value of 0 if successful. Otherwise, it returns a NetWare error code. See Return Values for C for more information.

Remarks

If the pathName parameter is a full volume pathname, a new volume and directory number are returned. If the path does not include a volume, volumeNumber is returned for newVolumeNumberP. If the path is relative, newDirectoryNumberP is based on the directory number and pathname.

See Also

FEMapHandleToVolumeAndDirectory, FEMapPathVolumeDirToVolumeDir, FEMapVolumeNumberToName