CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2006
    Posts
    148

    Items of Listview of external application

    Hi All,

    I m trying to store the content of a listview of an external application. It works fine when i try it on my own application, but fails on the third party application.


    I have tried to so many examples, but i cant get the text of the items in the listview.

    I have also tracked the LVM_GETITEM message using spy++, but it returns null value in the pszText member of LVITEM.


    What could be the reason.

    Thanx for any kind of help.

    Regards,
    shail2k4
    Last edited by shail2k4; April 20th, 2007 at 01:00 AM.

  2. #2

    Re: Items of Listview of external application

    LVITEM is only used on current process. If you want use LVM_GETITEM message to get item information from another process, you must alloc memory from the target process.

    You can use virtualallocex api to alloc memory from another process and use readprocessmemory api to read LVITEM information.
    Best Api Monitor tool.
    Trace the target program automatically and monitor the parameters of all API and COM interfaces.

    Auto Debug for Windows 4.0
    Auto Debug for .Net
    http://www.autodebug.com/

  3. #3
    Join Date
    Jun 2006
    Posts
    148

    Re: Items of Listview of external application

    Quote Originally Posted by pengch
    LVITEM is only used on current process. If you want use LVM_GETITEM message to get item information from another process, you must alloc memory from the target process.

    You can use virtualallocex api to alloc memory from another process and use readprocessmemory api to read LVITEM information.
    hi,

    I have tried all these api's and so many examples from internet , but the result is same. Cant get the Item or item text from listview.

    I there any other solution?

    Regards,
    shail2k4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured