Setting the "Title" value displayed in Visual Studio's "Attach to Process" dialog?
When you choose Debug / Attach to Process in Visual Studio, the dialog displayed has a "Title" column. By default this shows the caption of the main window belonging to the process. For example, it might display "It was a dark and stormy night - Notepad".
How can I set this field for an application that doesn't have a main window (e.g. a Windows serv开发者_如何学Goice)?
I have multiple services running with the same executable name, and I'd like to be able to easily differentiate between them when attaching.
Put this in a batch file and it will tell you the identity of the worker process:
c:\windows\system32\inetsrv\appcmd list wp
pause
This doesn't give you a title but will identify them when attaching
精彩评论