#1
  1. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    793

    Get the process handle of the current application


    Just wondering if anyone know how you would go about getting the process handle of the current application that is running?

    i.e. like that which is returned from OpenProcess via EnumProcesses

    Basically what I need to do is to check to make sure that every instance of a particular COM object is running that is suppose to be. I can get a list of every instance that is running, that isn't a problem using EnumProcesses, OpenProcess, and GetModuleFileNameExA. This will be compared to an array built from files that the com object writes everytime a new instance is created. The com object maintains the files and deletes them when it completes it's job. The big problem is, I need to write the process handle of the current instance to this file, but I am at a loss currently on how to get this.

    Any ideas?
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,645
    Rep Power
    4248
    Last edited by Scorpions4ever; July 2nd, 2003 at 05:01 PM.
  4. #3
  5. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    793
    You da man! Danke and congrats to making over 1000 posts. :)
  6. #4
  7. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,645
    Rep Power
    4248
    Bitte -- I feel honoured to finally join the 4-digit post count club :D

IMN logo majestic logo threadwatch logo seochat tools logo