ShowFunctionInitialDeleteDlg(
     LPVOID:lpFuncData,
     LPTSTR:lpszFileName
)
→ int

Arguments

lpFuncData

[in] The value of the lpFuncData member of the VFSBATCHDATA structure

lpszFileName

[in] The name of the first file or folder being deleted

Return value

The return value depends upon the choice made by the user. Valid return values are:

DELETERES_ABORTDelete operation should be aborted
DELETERES_DELETEDelete the specified file or folder
DELETERES_DELETEALLDelete this and all subsequent files or folders
DELETERES_SKIPSkip this file, continue with next

Description

The ShowFunctionInitialDeleteDlg function lets you more fully emulate Opus when performing a batch delete operation. It displays the initial confirmation dialog before commencing a delete operation.

You should only call this function if the BATCHF_DELETE_ASK flag is set in the VFSBATCHDATA structure. You should not display any confirmation dialogs if BATCHF_DELETE_QUIET is set.

If the return value is DELETERES_DELETEALL you should store this and not ask for any confirmation for deleting files or folders again (for the duration of this batch operation.)