Retrieves the characters or the character attributes of a range of characters.
Syntax
HRESULT GetText( ULONG cCharacterPosition, WCHAR *pcharText, SOURCE_TEXT_ATTR *pstaTextAttr, ULONG *pcNumChars, ULONG cMaxChars );
Parameters
- cCharacterPosition
- [in] Integer that specifies the position of the first character in a character range.
- pcharText
- [in, out] Address of a character buffer.
- pstaTextAttr
- [in, out] Address of a character attribute buffer.
- pcNumChars
- [in, out] Address of an integer that specifies the number of characters and attributes retrieved.
- cMaxChars
- [in] Integer that specifies the maximum number of characters to retrieve.
Return Value
Returns S_OK if successful, or an error code otherwise.