Returns information about deleted files
#include <nwfinfo.h>
int ScanErasedFiles (
char *pathname,
long *nextEntryNumber,
DIR *deletedFileInfo);
(IN) Specifies the string containing the path specification of the directory to view (maximum 255 characters, including the NULL terminator).
(IN/OUT) Points to the entry number of the next file (-1 initially).
(OUT) Points to the DIR structure.
ScanErasedFiles can be called repeatedly to obtain the list of file names contained in the directory specified by the pathname parameter. Files marked for deletion can be scanned to obtain information about who deleted the files and when they were deleted.
The pathname parameter can be an absolute path with a volume name or it can be relative to the current working directory. Do not include a wildcard character at the end of the path. In the following example, the erased files in the DIR1 directory on the SYS volume are scanned:
SYS:DIR1
The current connection must have See File rights in the specified directory.
The SetCurrentNameSpace function sets the name space that is used for parsing the path input to ScanErasedFiles.
NOTE:ScanErasedFiles currently works only in the DOS name space. However, you can scan erased files for another name space. Call the SetCurrentNameSpace function to change to the DOS name space. Then call ScanErasedFiles, supplying a DOS path name.
ScanErasedFiles returns DOS names for the files that have been erased. You can then use those names to either salvage the files by calling the SalvageErasedFile function or purge them by calling the PurgeErasedFile function.