Plug-in Reference — Inline Functions — Editor_GetSelTextW

# Editor_GetSelTextW

Retrieves the selected Unicode text. You can use this inline function or explicitly send the EE_GET_SEL_TEXTW message.

Editor_GetSelTextW( HWND hwnd, UINT nBufferSize, LPWSTR szBuffer );

## Parameters

hwnd

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

nBufferSize

Specifies the maximum number of characters in words to copy to the buffer, including the NULL character.

szBuffer

Pointer to the buffer that will receive the text.

## Return Values

If nBufferSize is zero, the return value is the required size, in words, for a buffer that can receive the text. If nBufferSize is not zero, the return value is not used.