NWAllocPermanentDirectoryHandle

Allocates a permanent directory handle for a network directory

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

Delphi Syntax

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

Parameters

conn

(IN) Specifies the NetWare server connection handle.

dirHandle

(IN) Specifies the directory handle associated with the desired directory path.

dirPath

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

newDirHandle

(OUT) Points to the new directory handle.

effectiveRights

(OUT) Points to the effective rights of the directory trustee connected through the dirHandle 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

To deallocate a permanent directory handle, call the NWDeallocateDirectoryHandle function.

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

NCP Calls

See Also

NWAllocTempNSDirHandle2, NWAllocTemporaryDirectoryHandle, NWDeallocateDirectoryHandle