Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. How I can get all list view items of another process?

How I can get all list view items of another process?

Scheduled Pinned Locked Moved C#
csharpjsonhelpquestion
4 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Marco2250
    wrote on last edited by
    #1

    Hi anyone. (c#, or vb.net) How I can get all list view items of another process? I think that I need to use windows api. Once I got them, how i can list sub items of each item? Ok, after that I need to get items text and sub items text. Please, help me. Thanks in advance.

    2 M J 3 Replies Last reply
    0
    • M Marco2250

      Hi anyone. (c#, or vb.net) How I can get all list view items of another process? I think that I need to use windows api. Once I got them, how i can list sub items of each item? Ok, after that I need to get items text and sub items text. Please, help me. Thanks in advance.

      2 Offline
      2 Offline
      224917
      wrote on last edited by
      #2

      System.Diagnostics.Process


      suhredayan
      There's no place like 127.0.0.1

      1 Reply Last reply
      0
      • M Marco2250

        Hi anyone. (c#, or vb.net) How I can get all list view items of another process? I think that I need to use windows api. Once I got them, how i can list sub items of each item? Ok, after that I need to get items text and sub items text. Please, help me. Thanks in advance.

        M Offline
        M Offline
        mav northwind
        wrote on last edited by
        #3

        Hi! For that you'll definitely need to use the Win32 API. Take a look at the LVM_* messages and the LVITEM struct in MSDN, for example LVM_GETITEMCOUNT and LVM_GETITEM.

        Regards, mav -- Black holes are the places where god divided by 0...

        1 Reply Last reply
        0
        • M Marco2250

          Hi anyone. (c#, or vb.net) How I can get all list view items of another process? I think that I need to use windows api. Once I got them, how i can list sub items of each item? Ok, after that I need to get items text and sub items text. Please, help me. Thanks in advance.

          J Offline
          J Offline
          Judah Gabriel Himango
          wrote on last edited by
          #4

          As mav mentioned, you can do this using the Win32 API. However, be aware that this will only work for Win32-based applications; WinFX/.NET 3 apps that use new Windows Presentation Foundation (WPF) do not have HWNDs for individual controls, and neither do they have Win32 message pumps. Because of this, it will be impossible to get at the ListViewItems of another process (a WPF-based one) unless that process specifically chooses to expose it to you.

          Tech, life, family, faith: Give me a visit. I'm currently blogging about: Dumbest. Movie. Title. Evaaar. The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups