Originally posted by kirants
if it is a different app, you need to hook into that.
There are ways to do it.

The reason why it works for count is the count is the return value of SendMessage(LVM_GETITEMCOUNT).

However, for getting the text, you pass a buffer, which is not a valid address in another process space ( exception being WM_GETTEXT across processes, which is handled differently ).

This article would probaly help
I appreciate your reply very much, and I understand your explanations. BTW here, let me ask one more.
I could get edit controls' text of another process's window with sendmessage(WM_GETTEXT). Is this different form ListCtrl?

Thanks.