NWAllocTemporaryDirectoryHandle

Assigns a temporary directory handle for the current name space

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) NWAllocTemporaryDirectoryHandle ( 
      NWCONN_HANDLE        conn,  
      NWDIR_HANDLE         dirHandle,  
      const nstr8 N_FAR   *dirPath,  
      NWDIR_HANDLE N_FAR  *newDirHandle,  
      pnuint8              rightsMask);
   

Delphi Syntax

   uses calwin32 
    
   Function NWAllocTemporaryDirectoryHandle 
     (conn : NWCONN_HANDLE; 
      dirHandle : NWDIR_HANDLE; 
      const dirPath : pnstr8; 
      Var newDirHandle : NWDIR_HANDLE; 
      rightsMask : pnuint8 
   ) : NWCCODE;
   

Parameters

conn

(IN) Specifies the NetWare server connection handle.

dirHandle

(IN) Specifies the directory handle associated with the desired directory path (or 0 if the dirPath parameter points to the complete path, including the volume name).

dirPath

(IN) Points to an absolute directory path (or a path relative to the NetWare directory handle) specifying the directory with which the new directory handle is associated.

newDirHandle

(OUT) Points to the new directory handle.

rightsMask

(OUT) Points to the effective rights of the directory trustee connected through the newDirHandle parameter (optional).

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

0x8998

VOLUME_DOES_NOT_EXIST

0x8999

DIRECTORY_FULL

0x899B

BAD_DIRECTORY_HANDLE

0x899C

INVALID_PATH

0x899D

NO_MORE_DIRECTORY_HANDLES

0x89A1

DIRECTORY_IO_ERROR

0x89FD

BAD_STATION_NUMBER

0x89FF

INVALID_DRIVE_NUMBER, HARDWARE_FAILURE

Remarks

The directory handles allocated by NWAllocTemporaryDirectoryHandle are automatically deallocated when the task terminates, or when the NWDeallocateDirectoryHandle function is called.

If more than 255 handles are allocated, NWAllocTemporaryDirectoryHandle may return a successful code; however, the dirHandle parameter will be zero.

NCP Calls

See Also

NWAllocPermanentDirectoryHandle, NWAllocTempNSDirHandle2, NWDeallocateDirectoryHandle