UndeleteFile

  #include <wfext.h>    

  int FAR PASCAL UndeleteFile(hwndParent, lpszDir)    
  HWND hwndParent; /* handle of File Manager window */
  LPSTR lpszDir; /* address of name of initial directory */

The UndeleteFile function is an application-defined callback function that File Manager calls when the user chooses the Undelete command from the File Manager File menu.

Parameters

hwndParent

Identifies the File Manager window. An “undelete” dynamic-link library (DLL) should use this handle to specify the parent window for any dialog box or message box the DLL may display.

lpszDir

Points to a null-terminated string that contains the name of the initial directory.

Return Value

The return value is one of the following, if the function is successful:

Value Meaning

–l An error occurred.
IDOK A file was undeleted. File Manager will repaint its windows.
IDCANCEL No file was undeleted.