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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Help!!!

Help!!!

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
4 Posts 3 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.
  • J Offline
    J Offline
    jimsleon
    wrote on last edited by
    #1

    How can I get the process's ID when I have got the process's HANDLE? Thanks

    M D 2 Replies Last reply
    0
    • J jimsleon

      How can I get the process's ID when I have got the process's HANDLE? Thanks

      M Offline
      M Offline
      Magnus Westin
      wrote on last edited by
      #2

      in Windows XP sp1 and Windows server 2003 you can call GetProcessId. But for the other, I dont think there is a documented way of doing that. You might be able to doing with some kernel call, but Im not sure. If there is a way, search Google under microsoft.public.win32.programmer.kernel Magnus

      D 1 Reply Last reply
      0
      • J jimsleon

        How can I get the process's ID when I have got the process's HANDLE? Thanks

        D Offline
        D Offline
        Dudi Avramov
        wrote on last edited by
        #3

        Check this and in CodeGuru

        1 Reply Last reply
        0
        • M Magnus Westin

          in Windows XP sp1 and Windows server 2003 you can call GetProcessId. But for the other, I dont think there is a documented way of doing that. You might be able to doing with some kernel call, but Im not sure. If there is a way, search Google under microsoft.public.win32.programmer.kernel Magnus

          D Offline
          D Offline
          Dudi Avramov
          wrote on last edited by
          #4

          Check this and in CodeGuru

          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