EmEditor Home - EmEditor Help - Plug-in Reference - Messages

EE_INSERT_FILEW

Inserts the specified file contents at the cursor. The file name is specified as a Unicode string. You can send this message explicitly or use the Editor_InsertFileW inline function.

EE_INSERT_FILEW
    wParam = (WPARAM) (LOAD_FILE_INFO*) pLoadFileInfo;
    lParam = (LPARAM) (LPCWSTR) szFileName;

Parameters

pLoadFileInfo

Pointer to a LOAD_FILE_INFO structure. If this parameter is NULL, EE_INSERT_FILEW will open a file by a method predefined by the properties.

szFileName

Specifies a full path file name. If a non-existing file is specified, EE_INSERT_FILEW will fail.

Return Values

If the command is successful, the return value is nonzero. If the command it not successful, the return value is zero.

Copyright 2003-2014 by Emurasoft, Inc.