Plug-in Reference — Messages — EE_REPLACE_IN_FILESW

# EE_REPLACE_IN_FILESW

Replaces a Unicode string in multiple files in the specified path. You can send this message explicitly or use the Editor_ReplaceInFilesW or Editor_BatchReplaceInFiles inline function.

    EE_REPLACE_IN_FILESW
    wParam = 0;
    lParam = (LPARAM) (GREP_INFO_EX*) pGrepInfo;

Or

    EE_REPLACE_IN_FILESW
    wParam = (WPARAM) (BATCH_GREP_INFO*) pBatchGrepInfo;
    lParam = (LPARAM) (FIND_REPLACE_INFO*) pBatchArray;

## Parameters

pGrepInfo

If no batch search is specified, this parameter specifies a pointer to the GREP_INFO_EX structure or GREP_INFOW structure. Newer plug-ins should use the GREP_INFO_EX structure.

pBatchGrepInfo

If a batch search is specified, this parameter specifies a pointer to the BATCH_GREP_INFO structure.

pBatchArray

If a batch search is specified, this parameter specifies a pointer to the array of FIND_REPLACE_INFO structures.

## Return Value

Returns FALSE if the user aborts, or TRUE if not.

## Version

Supported on EmEditor Professional Version 4.02 or later.