Andrew
2006-05-22 13:13:01 UTC
Hi, Brothers!
There is quite _strange_ situation:
I have two app. One of them has ListBox control (let's call it Host).
Another one (let's call it User) - should read content of this ListBox.
UserApp allocates with VirtualAllocEx a memory block (sure inside of
HostApp). Then it sends message
SendMessage(... LB_GETTEXT ...)
to the HostApp. After that I read memory block ( ReadProcessMemory ) that
was allocated before. Pointer to this memory block sure are passed in
SendMessage call.
AND! SendMessage returns -1, content of memory block has not any
modifications :(((
Index of requested item of list box - is correct.
What possibly do I wrong?
How could it be???
A lot of thanks in advance. Any hints, any ideas - will be highly appreciated.
There is quite _strange_ situation:
I have two app. One of them has ListBox control (let's call it Host).
Another one (let's call it User) - should read content of this ListBox.
UserApp allocates with VirtualAllocEx a memory block (sure inside of
HostApp). Then it sends message
SendMessage(... LB_GETTEXT ...)
to the HostApp. After that I read memory block ( ReadProcessMemory ) that
was allocated before. Pointer to this memory block sure are passed in
SendMessage call.
AND! SendMessage returns -1, content of memory block has not any
modifications :(((
Index of requested item of list box - is correct.
What possibly do I wrong?
How could it be???
A lot of thanks in advance. Any hints, any ideas - will be highly appreciated.