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.
DWORD APIENTRY UndeleteFile(
| HWND hwndOwner, | // handle of File Manager window | 
| LPSTR lpszDir | // address of name of initial directory | 
| ); | 
The return value is one of the following:
| Value | Meaning | 
| -1 | An error occurred. | 
| IDOK | A file was undeleted. File Manager repaints its windows. | 
| IDCANCEL | No file was undeleted. |