I create a COM object which appears in the task manager under the name
of the exe file the COM server is stored. I would like to know if there is a Windows API call to change the name that appears in the task manager to something else for every instance. The main reason is that I create single use instances and I would like to distinguish between them in the task manager especially if I have to kill one or the other (in addition to making a more sensible name). Although not directly related to Dolphin, I figured since it interfaces with Windows someone could have an idea on how to do this. Thank you, Costas |
[hidden email] (Costas Menico) wrote in message news:<[hidden email]>...
> I create a COM object which appears in the task manager under the name > of the exe file the COM server is stored. I would like to know if > there is a Windows API call to change the name that appears in the > task manager to something else for every instance. The main reason is > that I create single use instances and I would like to distinguish > between them in the task manager especially if I have to kill one or > the other (in addition to making a more sensible name). > > Although not directly related to Dolphin, I figured since it > interfaces with Windows someone could have an idea on how to do this. It seems that the text which appears in Task Manager is just the window title; if so you can use View>>setWindowText: to set your window title to something unique for each instance of your app. HTH. -- Bob Jarvis |
"Bob Jarvis" <[hidden email]> wrote:
> > task manager to something else for every instance. The main reason is > > that I create single use instances and I would like to distinguish > It seems that the text which appears in Task Manager is just the > window title; if so you can use View>>setWindowText: to set your > window title to something unique for each instance of your app. HTH. i doubt this would work since he has single instances local server exe-s and the gui is in the other process. what he could do is create a custom 'task manager - kill' application ( i guess one can easily find a source for something like this), and also have each server process create something in the process (semaphore or something that is per process, and not global), and then the custom kill can read those things from processes and display unique string for each process... or he could save a file from each process named by the process id, and put an unique identifier for each process in its file, then you can read those files and kill by the process id, which is displayed in the task manager. davorin mestric |
On Mon, 8 Oct 2001 16:29:24 +0200, "Davorin Mestric"
<[hidden email]> wrote: > >"Bob Jarvis" <[hidden email]> wrote: >> > task manager to something else for every instance. The main reason is >> > that I create single use instances and I would like to distinguish >> It seems that the text which appears in Task Manager is just the >> window title; if so you can use View>>setWindowText: to set your >> window title to something unique for each instance of your app. HTH. > >i doubt this would work since he has single instances local server exe-s and >the gui is in the other process. > >what he could do is create a custom 'task manager - kill' application ( i >guess one can easily find a source for something like this), and also have >each server process create something in the process (semaphore or something >that is per process, and not global), and then the custom kill can read >those things from processes and display unique string for each process... > >or he could save a file from each process named by the process id, and put >an unique identifier for each process in its file, then you can read those >files and kill by the process id, which is displayed in the task manager. This is exactly what I ended up doing. I created a task manager for my own processes. I can then kill the tasks by using processid.... Thanks Costas |
Free forum by Nabble | Edit this page |