ShowFunctionErrorDlg(
LPVOID:lpFuncData,
UINT:uiType,
int:iErrorCode,
UINT:uiAction,
LPTSTR:lpszName,
LPTSTR:lpszErrMsg
)
→ int
| ERRORTYPE_RETRY_SKIP_CANCEL |
| ERRORTYPE_RETRY_CANCEL |
| ERRORTYPE_SKIP_CANCEL |
| ERRORTYPE_OK |
| ERRORTYPE_OK_SKIP_CANCEL |
| ERRORTYPE_SCHEDULE_RETRY_SKIP_CANCEL |
| ERRORACTION_COPY |
| ERRORACTION_MOVE |
| ERRORACTION_DELETE |
| ERRORRESULT_ABORT | Batch operation should be aborted |
| ERRORRESULT_RETRY | Retry the operation |
| ERRORRESULT_SKIP | Skip the current file and continue with the next |
| ERRORRESULT_SKIP_ALL | Skip all errors that occur in future |
| ERRORRESULT_SCHEDULE | Schedule for later copying |
| ERRORRESULT_SCHEDULE_ALL | Schedule all files that fail for later copying |
| ERRORRESULT_OK | User acknowledges the error |
The ShowFunctionErrorDlg function lets you more fully emulate Opus when performing a batch operation. It displays the standard error dialog.
If the return value is ERRORRESULT_SKIP_ALL you should store this and not display any further error dialogs for the duration of this batch operation - instead, any files that fail should be silently skipped over.
If the return value is ERRORRESULT_SCHEDULE then you should attempt to schedule the file for later copying, if possible (this will only be returned if you specified the dialog type of ERRORTYPE_SCHEDULE_RETRY_SKIP_CANCEL, which you should not do unless you actually are able to schedule files for later copying.)