NWGetDirectoryHandlePath

Returns the path name of the directory associated with the given directory handle

Local Servers:blocking
Remote Servers:blocking
NetWare Server:3.11, 3.12, 3.2, 4.x, 5.x, 6.x
Platform:NLM, 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 )NWGetDirectoryHandlePath  ( 
      NWCONN_HANDLE   conn,  
      NWDIR_HANDLE    dirHandle,  
      pnstr8          dirPath);
   

Delphi Syntax

   uses calwin32 
    
   Function NWGetDirectoryHandlePath 
     (conn : NWCONN_HANDLE; 
      dirHandle : NWDIR_HANDLE; 
      dirPath : pnstr8 
   ) : NWCCODE;
   

Parameters

conn

(IN) Specifies the NetWare server connection handle.

dirHandle

(IN) Specifies the directory handle for the directory whose path is to be reported.

dirPath

(OUT) Points to the directory path name associated with the dirHandle parameter.

Return Values

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

0x0000

SUCCESSFUL

0x8801

INVALID_CONNECTION

0x890A

NLM_INVALID_CONNECTION

0x8996

SERVER_OUT_OF_MEMORY

0x899B

BAD_DIRECTORY_HANDLE

0x89A1

DIRECTORY_IO_ERROR

Remarks

NWGetDirectoryHandlePath allows a client to retrieve the full directory path of the directory indexed by the dirHandle parameter. The string accessed by the dirPath parameter contains a path name in the following format:

   Volume Name:Directory\Subdirectory\....
   

The string accessed by the dirPath parameter does not contain the name of the server. Its maximum length is 255 bytes.

Under NETX, if an invalid connection handle is passed to the conn parameter, NWGetDirectoryHandlePath will return 0x0000. An error will never be returned by NETX since NETX always chooses a default connection handle if the connection handle cannot be resolved.

NETX tries to resolve the connection ID through the preferred server first. If a preferred server does not exist, the request is directed to the default server (or the server implied by the default drive). If the default drive is mapped to a local drive, the shell directs the request to the primary server as the lowest connection priority.

NCP Calls

See Also

NWAllocTemporaryDirectoryHandle, NWDeallocateDirectoryHandle