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.
Last edited by Scorpions4ever; July 2nd, 2003 at 04:01 PM.
You da man! Danke and congrats to making over 1000 posts.
Bitte -- I feel honoured to finally join the 4-digit post count club