Thread: Getting Info from Process

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    118

    Getting Info from Process

    Hey!

    For a program I'd like to make, I need to get some info from another program, one that does not provide a developer API at all. Basically, I'm trying to get the currently playing song from a certain media player.

    What would this involve? Surely I can't just find the data in memory somewhere and use it? I figured it'd be something with a hook to the program, and intercepting the change in song title data. But...

    1) Would the program have to have a function that returns the value I want? Or can I just retrieve data from the program from a variable it might be holding it in?

    2) What kind of stuff would I need to look into to start doing this? Doing google searches on 'process hooking', 'api hooking', etc., turns up way too much stuff.

    Thanks!
    FlyingIsFun1217

  2. #2
    Registered User
    Join Date
    Mar 2007
    Posts
    416
    I would have no idea as I have never tried something like this, but here is my two cents. Try looking in to the sound driver/sound device and see if something is being played. If it is, find what file it is being played from and/or its location. Only problem I would see from this is say there is a video on youtube playing some music, and your itunes is playing some music. Your driver/card would be playing two different sources, one of which is not a file. In that case I would have no idea how to handle that. Hope that helps get you started.

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    118
    That seems like it'd be the exact same thing as what I'm describing, except instead of getting the data I want, I'm getting a stream of the song data, which definitely doesn't help me.

    FlyingIsFun1217

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, 10:05 AM
  2. how to get process info ( to extract process thread id )
    By umen242 in forum C++ Programming
    Replies: 4
    Last Post: 02-12-2009, 01:08 PM
  3. Replies: 3
    Last Post: 10-15-2008, 09:24 AM
  4. Problem with forking a process
    By Unitedroad in forum C Programming
    Replies: 10
    Last Post: 10-04-2007, 01:43 AM
  5. process programming
    By St0rM-MaN in forum Linux Programming
    Replies: 2
    Last Post: 09-15-2007, 07:53 AM