NWSetDirectoryHandlePath

Sets the target directory handle for the specified directory handle and path

NetWare Server:3.11, 3.12, 3.2, 4.x, 5.x, 6.x
Platform:Windows NT, Windows 95, Windows 98
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:File System

Syntax

   #include <nwdirect.h> 
   or 
   #include <nwcalls.h> 
    
   N_EXTERN_LIBRARY(NWCCODE) NWSetDirectoryHandlePath ( 
      NWCONN_HANDLE        conn,  
      NWDIR_HANDLE         sourceDirHandle,  
      const nstr8 N_FAR   *dirPath,  
      NWDIR_HANDLE         destDirHandle);
   

Delphi Syntax

   uses calwin32 
    
   Function NWSetDirectoryHandlePath 
     (conn : NWCONN_HANDLE; 
      sourceDirHandle : NWDIR_HANDLE; 
      dirPath : pnstr8; 
      destDirHandle : NWDIR_HANDLE 
   ) : NWCCODE;
   

Parameters

conn

(IN) Specifies the NetWare server connection handle.

sourceDirHandle

(IN) Specifies the source directory handle (index number) identifying the volume or directory on a NetWare server being reassigned (1-255).

dirPath

(IN) Points to the source directory path (optional).

destDirHandle

(IN) Specifies the target directory handle (index number) to become the new directory handle for the specified directory.

Return Values

These are common return values; see Return Values (Return Values for C) for more information.

0x0000

SUCCESSFUL

0x8801

INVALID_CONNECTION

0x8996

SERVER_OUT_OF_MEMORY

0x8998

VOLUME_DOES_NOT_EXIST

0x899B

BAD_DIRECTORY_HANDLE

0x899C

INVALID_PATH

0x89A1

DIRECTORY_IO_ERROR

0x89FA

TEMP_REMAP_ERROR

0x89FD

BAD_STATION_NUMBER

0x89FF

Failure

Remarks

If NWSetDirectoryHandlePath fails, the destDirHandle parameter remains unchanged.

In cases where multiple NetWare servers are being used, the sourceDirHandle and destDirHandle parameters must have the same server connection handle identifier.

NWSetDirectoryHandlePath assigns the destDirHandle parameter to a directory path defined by combining the sourceDirHandle parameter and the string accessed by the dirPath parameter.

A NetWare server maintains a Directory Handle Table for each workstation that is logged in.

The destDirHandle parameter is another index number from the Directory Handle Table for the NetWare server.

The dirPath parameter can identify a full or partial directory path. A full directory path defines a volume or a directory on a given NetWare server in the format VOLUME:DIRECTORY/.../DIRECTORY. A partial directory path specifies at least a directory and one or more parent directories.

Applications frequently combine a directory handle and a directory path to specify a target directory. For example, if the specified directory handle points to SYS: and the specified directory path is PUBLIC/WORDP, the specified directory is SYS:PUBLIC/WORDP.

When an application defines a target directory using only a directory handle, the application must set the dirPath parameter to a NULL string. When an application defines a directory using only a directory path, the application must set the sourceDirHandle parameter to zero.

NCP Calls

See Also

NWGetDirectoryHandlePath