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. PROCESS_INFORMATION [modified]

PROCESS_INFORMATION [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 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.
  • S Offline
    S Offline
    Sam 2006
    wrote on last edited by
    #1

    hi, i have a process id and a handle to a process. how can i get the PROCESS_INFORMATION that i would get from CreateProcess(); (after it has been created)? or, how can i get a handle to the main thread of the process? thanks in advance -- modified at 14:21 Monday 28th August, 2006

    V D 2 Replies Last reply
    0
    • S Sam 2006

      hi, i have a process id and a handle to a process. how can i get the PROCESS_INFORMATION that i would get from CreateProcess(); (after it has been created)? or, how can i get a handle to the main thread of the process? thanks in advance -- modified at 14:21 Monday 28th August, 2006

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #2

      Interesting. check out msdn CreateToolhelp32Snapshot Thread32First Kuphryn

      1 Reply Last reply
      0
      • S Sam 2006

        hi, i have a process id and a handle to a process. how can i get the PROCESS_INFORMATION that i would get from CreateProcess(); (after it has been created)? or, how can i get a handle to the main thread of the process? thanks in advance -- modified at 14:21 Monday 28th August, 2006

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Sam Kline wrote:

        how can i get the PROCESS_INFORMATION that i would get from CreateProcess();

        Using Process32First() will give you a PROCESSENTRY32 structure. Does it have the information you require?


        "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

        "Judge not by the eye but by the heart." - Native American Proverb

        S 1 Reply Last reply
        0
        • D David Crow

          Sam Kline wrote:

          how can i get the PROCESS_INFORMATION that i would get from CreateProcess();

          Using Process32First() will give you a PROCESSENTRY32 structure. Does it have the information you require?


          "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

          "Judge not by the eye but by the heart." - Native American Proverb

          S Offline
          S Offline
          Sam 2006
          wrote on last edited by
          #4

          I looked up the function that kuphryn gave on MSDN and those 2 functions do what I neeed. Thanks for the replies.

          D 1 Reply Last reply
          0
          • S Sam 2006

            I looked up the function that kuphryn gave on MSDN and those 2 functions do what I neeed. Thanks for the replies.

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            Thread32First() provided you with process-related information?


            "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

            "Judge not by the eye but by the heart." - Native American Proverb

            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