GetWildNewName(
     LPTSTR:lpszOldPattern,
     LPTSTR:lpszNewPattern,
     LPTSTR:lpszFileName,
     LPTSTR:lpszNewName,
     int:cchNewNameMax
)
→ BOOL

Arguments

lpszOldPattern

[in] The "old" rename pattern entered by the user

lpszNewPattern

[in] The "new" rename pattern entered by the user

lpszFileName

[in] The original name of the file

lpszNewName

[in] Buffer to receive the new file name.

cchNewNameMax

[in] Size of the lpszNewName buffer in characters

Return value

Returns TRUE if lpszFileName matches the "old" rename pattern, or FALSE if it does not. If a file does not match the "old" pattern it should be skipped.

Description

The GetWildNewName function lets you support Opus's Copy As/Move As functions in your plugins when performing batch-mode operations.

If this function returns TRUE the lpszNewName buffer will contain the new name of the file (which may or may not be different to lpszFileName). If the function returns FALSE you should not copy this file.