VFS_BatchOperation(
HANDLE:hVFSData,
LPVFSFUNCDATA:lpFuncData,
LPTSTR:lpszPath,
LPVFSBATCHDATA:lpBatchData
)
→ UINT
The return value indicates the result of the batch operation. Currently defined return codes are:
| VFSBATCHRES_DODEFAULT | The operation cannot be performed in batch mode. |
| VFSBATCHRES_SKIP | Skip the first file in the pszFiles array and call again for the next file |
| VFSBATCHRES_HANDLED | File has been handled by the batch operation |
| VFSBATCHRES_ABORT | Abort the function |
| VFSBATCHRES_COMPLETE | Operation has been completed for all files |
| VFSBATCHRES_CALLFOREACH | Set this flag in conjunction with the SKIP or HANDLED return codes to force the VFS_BatchOperation function to be called for each file |
The VFS_BatchOperation function is called to initiate a batch-mode file operation involving your plugin's namespace.
As well as returning one of the above codes to indicate the result of a batch operation, you should also fill in the piResults array (supplied in the VFSBATCHDATA structure) with a result code for each of the specified files - either 0 for success or an error code on failure.