Editor_LoadFileA

Loads a specified file into EmEditor. The file name is specified as an ANSI string. You can use this inline function or explicitly send the EE_LOAD_FILEA message.

Editor_LoadFileA( HWND hwnd, LOAD_FILE_INFO_EX* pLoadFileInfo, LPCSTR szFileName );

Parameters

hwnd

Specifies the window handle of the view or frame of EmEditor.

pLoadFileInfo

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

szFileName

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

Return Values

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