UndeleteFile

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
);  

Parameters

hwndOwner

Identifies the File Manager window. An "undelete" dynamic-link library (DLL) should use this handle to specify the owner 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 Values

If the function succeeds, the return value is one of the following:

Value Meaning
-l An error occurred.
IDOK A file was undeleted. File Manager repaints its windows.
IDCANCEL No file was undeleted.