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. Visual Basic
  4. How to get the Instance Handle from a Process ID?

How to get the Instance Handle from a Process ID?

Scheduled Pinned Locked Moved Visual Basic
jsontutorialquestion
4 Posts 2 Posters 0 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.
  • B Offline
    B Offline
    Billypon
    wrote on last edited by
    #1

    How could I get the Instance Handle from another Process ID? Maybe the Process has no any windows, so I can't use the GetWindowLong API. And I know nothing about the Module Name of the third Process, so I can't use the GetModuleHandle API,too. So,how could I get the Instance Handle from another Process ID?Or how could I get the Module Name of the third Process,that I can use the GetModuleHandle API for it?

    P 1 Reply Last reply
    0
    • B Billypon

      How could I get the Instance Handle from another Process ID? Maybe the Process has no any windows, so I can't use the GetWindowLong API. And I know nothing about the Module Name of the third Process, so I can't use the GetModuleHandle API,too. So,how could I get the Instance Handle from another Process ID?Or how could I get the Module Name of the third Process,that I can use the GetModuleHandle API for it?

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Please don't cross post. You have already asked this in the Visual C++ forum.

      Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.

      B 1 Reply Last reply
      0
      • P Pete OHanlon

        Please don't cross post. You have already asked this in the Visual C++ forum.

        Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.

        B Offline
        B Offline
        Billypon
        wrote on last edited by
        #3

        Because I want to get some way with it either in VB or in VC

        P 1 Reply Last reply
        0
        • B Billypon

          Because I want to get some way with it either in VB or in VC

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          There's not some magic VB only API. It's going to be the same in both cases. It is bad form to post in multiple locations, so please stop it.

          Please visit http://www.readytogiveup.com/ and do something special today. Deja View - the feeling that you've seen this post before.

          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