NWRestoreErasedFile(3nw)


NWRestoreErasedFile -- recovers erased file on NetWare server

Synopsis

   #include <nwdel.h> 
   or 
   #include <nwcalls.h> 
   

NWCCODE N_API NWRestoreErasedFile (NWCONN_HANDLE conn, NWDIR_HANDLE dirHandle, pnstr8 dirPath, pnstr8 oldName, pnstr8 newName);

Description

The parameters are as follows:

conn
(IN) Specifies the NetWare server connection handle containing the erased file.

dirHandle
(IN) Specifies the directory handle of the directory containing the file to restore.

dirPath
(IN) Points to the path (relative to dirHandle) containing the erased file.

oldName
(IN) Points to the original name of the erased file.

newName
(IN) Points to the name to be given to the restored file.

Return values

0x0000
SUCCESSFUL

0x8801
INVALID_CONNECTION

0x8998
VOLUME_DOES_NOT_EXIST

0x899B
BAD_DIRECTORY_HANDLE

0x899C
INVALID_PATH

0x89FB
ERR_NCP_NOT_SUPPORTED

Notices

dirHandle can be zero if dirPath contains the complete path, including the volume name.

Applications can optionally use newName to rename the file when restoring.

Services

Deleted File

NCP calls

0x2222 22 17 Recover Erased File (old)

 
 ----------------------------------------- 
| 0x2222|  22|  17|  Recover Erased File | 
|       |    |    |  (old)               | 
|-------|----|----|----------------------| 

30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.