Plug-in Reference — Structures — RUN_MACRO_INFO

# RUN_MACRO_INFO

Used by EE_RUN_MACRO message.

    typedef struct _RUN_MACRO_INFO {
    	size_t cbSize;
    	LPCWSTR pszMacroFile;
    	LPCWSTR pszText;
    	UINT nFlags;
    	int nDefMacroLang;
    	POINT_PTR ptOrgPos;
    	POINT_PTR ptCodePos;
    	POINT_PTR ptErrorPos;
    	HGLOBAL hstrResult;
    } RUN_MACRO_INFO;

## Members

cbSize

Size of this data structure, in bytes. Set this member to sizeof( RUN_MACRO_INFO ) before sending the EE_RUN_MACRO message.

pszMacroFile

Specifies the path and file name of the macro file you want to run.

pszText

Specifies a macro text on memory that you want to run.

nFlags

Specifies one of the following values.

RUN_FILE | pszMacroFile parameter is valid.
RUN_TEXT | pszText parameter is valid.

nDefMacroLang

Specifies a combination of the following values.

MACRO_LANG_JSCRIPT | The macro is JScript.
MACRO_LANG_V8 | The macro is V8.
MACRO_LANG_VBSCRIPT | The macro is VBScript.
MACRO_LANG_UNKNOWN | The macro language is unknown.
MACRO_SYNC_ONLY | Executes the macro synchronously.

ptOrgPos

Specifies the original position of the macro.

ptCodePos

Specifies the code position of the macro.

ptErrorPos

Specifies the error position of the macro.

hstrResult

Output. Receives the handle to the output string that the macro returns. The caller is responsible to free this handle by using the GlobalFree function.

## Version

Supported on Version 9.00 or later.