a'right, here's an update... tried to use PostMessage... so it claims that is succeeds (eax == 01) LastError == ERROR_SUCCESS (0)... but still no text is actually being selected inside the richedit box...
MarkFoundString PROC rvaFound:DWORD
LOCAL dwTemp:DWORD
LOCAL rChar:CHARRANGE
int 3
invoke szLen, addr srchString
mov edx, txtAddr
mov ecx, rvaFound
sub ecx, edx ; getting offsets...
mov rChar.cpMin, ecx
add eax, ecx
mov rChar.cpMax, eax
;invoke SendMessage, hTxt, EM_EXSETSEL, 0, addr rChar
invoke PostMessage, hTxt, EM_EXSETSEL, 0, addr rChar
ret
MarkFoundString ENDP

PS: i just tried to eventually work around that, using SendDlgItemMessage like that: invokeSendDlgItemMessage, hWnd, ID_CTEXT, EM_EXSETSEL, 0, addr rChar (instead of postmessage/sendmessage...) -> returns eax == 00000005h/LastError ERROR_ACCESS_DENIED (00000005h)... :icon_eek: still no text selection marked... hWnd is a GLOBAL variable, containing the MAIN window's handle...