Getting PID from process

This is a discussion on Getting PID from process within the Windows Programming forums, part of the Platform Specific Boards category; Hey everyone, can anyone direct me to an API that will get me the PID from a process name? (e.g. ...

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    20

    Getting PID from process

    Hey everyone, can anyone direct me to an API that will get me the PID from a process name? (e.g. "notepad.exe")

    I can't use the FindWindowA method as the program I'm dealing with draws no windows and I'm stumped, help is appreciated
    Edit/Delete Message

  2. #2
    Mad OnionKnight's Avatar
    Join Date
    Jan 2005
    Location
    Umeň, Sweden
    Posts
    555
    Quote Originally Posted by int3 View Post
    I can't use the FindWindowA method as the program I'm dealing with draws no windows
    How is that a problem?

  3. #3
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    • Google
    • MSDN


    Search.

    I always wonder about people that ask these kind of questions and never seem to search.

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Answered by maxorator (five topics down).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. init adopts zombie process?
    By password636 in forum Linux Programming
    Replies: 4
    Last Post: 07-01-2009, 11:05 AM
  2. create a child process that creates a child process
    By cus in forum Linux Programming
    Replies: 9
    Last Post: 01-13-2009, 02:14 PM
  3. Getting other processes class names
    By Hawkin in forum Windows Programming
    Replies: 3
    Last Post: 03-20-2008, 05:02 PM
  4. Problem with forking a process
    By Unitedroad in forum C Programming
    Replies: 10
    Last Post: 10-04-2007, 02:43 AM
  5. process programming
    By St0rM-MaN in forum Linux Programming
    Replies: 2
    Last Post: 09-15-2007, 08:53 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21