I believe this is difficult, if not impossible. The problem, as you've probably found, is that all the C functions you need (GetTabTextFromArea etc.) only support 255 characters.
Hi, Paul.
Sounds like you're talking about REST API. And that your are overwriting data with older values if B managed to read record before A finished to update it. Classic conflict resolution ...