NWAFPRename

Renames an AFP file

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:AFP

Syntax

  #include <nwafp.h> 
  or 
  #include <nwcalls.h> 
   
  NWCCODE NWAPI NWAFPRename ( 
     NWCONN_HANDLE       conn,  
     nuint16             volNum,  
     nuint32             AFPSourceEntryID,  
     nuint32             AFPDestEntryID,  
     const nstr8 N_FAR  *AFPSrcPath,  
     const nstr8 N_FAR  *AFPDstPath);
  

Delphi Syntax

  uses calwin32 
   
  Function NWAFPRename 
    (conn : NWCONN_HANDLE; 
     volNum : nuint16; 
     AFPSourceEntryID : nuint32; 
     AFPDestEntryID : nuint32; 
     const AFPSrcPath : pnstr8; 
     const AFPDstPath : pnstr8 
  ) : NWCCODE;
  

Parameters

conn
(IN) Specifies the NetWare server connection handle.
volNum
(IN) Specifies the volume number of the directory entry location.
AFPSourceEntryID
(IN) Specifies the AFP source base ID.
AFPDestEntryID
(IN) Specifies the AFP destination base ID.
AFPSrcPath
(IN) Points to the AFP source directory path relative to AFPSourceEntryID.
AFPDstPath
(IN) Points to the AFP destination directory path, relative to AFPDestEntryID.

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

0x8984

NO_CREATE_PRIVILEGES

0x8988

INVALID_FILE_HANDLE

0x8983

IO_ERROR_NETWORK_DISK

0x898B

NO_RENAME_PRIVILEGES

0x898E

NO_FILES_AFFECTED_IN_USE

0x8990

NO_FILES_AFFECTED_READ_ONLY

0x8992

NO_FILES_RENAMED_NAME_EXISTS

0x8993

NO_READ_PRIVILEGES

0x8996

SERVER_OUT_OF_MEMORY

0x8998

VOLUME_DOES_NOT_EXIST

0x8999

DIRECTORY_FULL

0x899C

Invalid AFP Path String

0x899E

INVALID_FILENAME

0x89A1

DIRECTORY_IO_ERROR

0x89A2

READ_FILE_WITH_RECORD_LOCKED

0x89FD

BAD_STATION_NUMBER

0x89FF

NO_FILES_FOUND_ERROR

NCP Calls

See Also

NWNSRename (Multiple and Inter-File Services), NWAFPGetEntryIDFromName