ShowFunctionNewNameDlg(
LPVOID:lpFuncData,
LPTSTR:lpszOldName,
int:cchOldNameMax,
LPTSTR:lpszNewName,
int:cchNewNameMax,
BOOL:fMove
)
→ int
The return value depends upon the choice made by the user. Valid return values are:
| NEWNAME_ABORT | Copy operation should be aborted |
| NEWNAME_SKIP | Skip the current file, continue with the next file |
| NEWNAME_SIMPLE | No wildcard pattern was entered |
| NEWNAME_WILD | A wildcard pattern was entered |
The ShowFunctionNewNameDlg function lets you more fully emulate Opus when performing a batch copy operation. It displays the dialog that allows a user to rename files as they are copied or moved.
You should only call this function if the BATCHF_COPY_RENAME flag is set in the VFSBATCHDATA structure, indicating that the user wishes to perform a Copy As or Move As function.
If the return value is NEWNAME_SIMPLE, the user did not enter a wildcard pattern. You should therefore use the value of lpszNewName as the new name of the file (note that the user may still have edited the new name.) You should then call this function again for the next file.
If the return value is NEWNAME_WILD, the user entered a wildcard pattern. You should save the contents of lpszOldName and lpszNewName, and use the GetWildNewName function to get the real new name of each file being copied or moved. Once the user has entered a wildcard pattern they should not be asked for a new name again for the duration of the batch operation.