Recovers deleted files from the NetWare server
#include <nwdel.h>
or
#include <nwcalls.h>
NWCCODE N_API NWRecoverDeletedFile (
NWCONN_HANDLE conn,
NWDIR_HANDLE dirHandle,
nuint32 iterHandle,
nuint32 volNum,
nuint32 dirBase,
pnstr8 delFileName,
pnstr8 rcvrFileName);
uses calwin32
Function NWRecoverDeletedFile
(conn : NWCONN_HANDLE;
dirHandle : NWDIR_HANDLE;
iterHandle : nuint32;
volNum : nuint32;
dirBase : nuint32;
delFileName : pnstr8;
rcvrFileName : pnstr8
) : NWCCODE;
(IN) Specifies the NetWare server connection handle containing the deleted file.
(IN) Specifies the directory handle of the directory containing the file to recover.
(IN) Specifies the number returned by NWScanForDeletedFiles.
(IN) Specifies the number returned by NWScanForDeletedFiles.
(IN) Specifies the number returned by NWScanForDeletedFiles.
(OUT) Points to the name of the erased file.
(OUT) Points to the name to use in recovering the file.
These are common return values; see Return Values for C for more information.
For 3.x-6.x servers, files deleted by a client are moved to a holding area on the volume until they are either purged, restored (by calling NWRecoverDeletedFile), or replaced by other deleted files.
For 3.11 servers, the recovery is performed one file at a time. NWRecoverDeletedFile can also recover the deleted file and give it a new name. This feature alleviates problems with recovering a file when a new file exists with the same name.
For 3.x, the application must specify the file name in rcvrFileName, not the path. No wildcards are allowed.
NOTE:Due to earlier support for 14 character names in NetWare, both delFileName and rcvrFileName buffers must be at least 15 bytes long.
Although parameters may only be valid for some servers, each parameter must be filled. Valid parameters for NWRecoverDeletedFile on each platform are listed below: