What about:

ChatEdit_GetLastToldTarget()
ChatEdit_SetLastToldTarget(string)

Not in front of a PC with WoW right now so I can't check, but Wow Instant Messenger uses those and I'm not seeing them defined in WIM's source, so I would assume they are WoW Native functions... could be wrong of course .