Click here to Skip to main content
15,909,605 members
Home / Discussions / C#
   

C#

 
QuestionHow to run a Win16 program? [modified] Pin
Mackster2111-Jul-07 8:48
Mackster2111-Jul-07 8:48 
AnswerRe: How to run a Win16 program? Pin
Luc Pattyn1-Jul-07 9:03
sitebuilderLuc Pattyn1-Jul-07 9:03 
GeneralRe: How to run a Win16 program? Pin
Mackster2111-Jul-07 9:10
Mackster2111-Jul-07 9:10 
GeneralRe: How to run a Win16 program? Pin
Luc Pattyn1-Jul-07 10:05
sitebuilderLuc Pattyn1-Jul-07 10:05 
QuestionDetermining when application is running in debug mode Pin
theFrenchHornet1-Jul-07 7:59
theFrenchHornet1-Jul-07 7:59 
AnswerRe: Determining when application is running in debug mode Pin
Luc Pattyn1-Jul-07 8:54
sitebuilderLuc Pattyn1-Jul-07 8:54 
GeneralRe: Determining when application is running in debug mode Pin
theFrenchHornet1-Jul-07 10:21
theFrenchHornet1-Jul-07 10:21 
GeneralRe: Determining when application is running in debug mode Pin
Luc Pattyn1-Jul-07 10:56
sitebuilderLuc Pattyn1-Jul-07 10:56 
Hi,

getting the list of items shown by "app" tab in Task Manager is complex; it entails
finding the right window (i.e. knowing the names of the windows in its hierarchy),
then sending some LVM_... messages to the listview. It must be similar to enumerating
the notify icons in the system tray, and the icons on the desktop. Each of these
can be found in several CodeProject articles.

I dont think reading that list is a very good idea; it is complex and the names you would
get are Window titles, which does not necessarily correlate well with the process names...

Using TaskInfo I noticed the vshost.exe process has quite different characteristics
(CPU time, working set, number of windows, ...) when comparing an idle state with
an active debug state.

So if what you want to figure out is whether something is being handled by vshost,
I suggest you get hold of its PID (using Process class), then do a P/Invoke to
either get its main window title, or to enumerate all its windows (zero when not active).

Smile | :)


GeneralRe: Determining when application is running in debug mode Pin
theFrenchHornet1-Jul-07 11:04
theFrenchHornet1-Jul-07 11:04 
GeneralMore on Task Manager Pin
Luc Pattyn1-Jul-07 11:30
sitebuilderLuc Pattyn1-Jul-07 11:30 
GeneralRe: Determining when application is running in debug mode Pin
theFrenchHornet3-Jul-07 8:19
theFrenchHornet3-Jul-07 8:19 
GeneralRe: Determining when application is running in debug mode Pin
Luc Pattyn3-Jul-07 11:00
sitebuilderLuc Pattyn3-Jul-07 11:00 
AnswerRe: Determining when application is running in debug mode Pin
Miguel Lopes1-Jul-07 11:57
Miguel Lopes1-Jul-07 11:57 
AnswerRe: Determining when application is running in debug mode - solution Pin
theFrenchHornet3-Jul-07 8:18
theFrenchHornet3-Jul-07 8:18 
QuestionPassing cmd line arguments to registry value during install Pin
Miguel Lopes1-Jul-07 6:27
Miguel Lopes1-Jul-07 6:27 
QuestionBig Problem with WebService Pin
Iftekhar Naim1-Jul-07 5:17
Iftekhar Naim1-Jul-07 5:17 
AnswerRe: Big Problem with WebService Pin
Guffa1-Jul-07 6:37
Guffa1-Jul-07 6:37 
GeneralRe: Big Problem with WebService Pin
Iftekhar Naim1-Jul-07 14:00
Iftekhar Naim1-Jul-07 14:00 
QuestionGeneric Pin
Jeeva Jose1-Jul-07 4:34
Jeeva Jose1-Jul-07 4:34 
AnswerRe: Generic Pin
DavidNohejl1-Jul-07 7:40
DavidNohejl1-Jul-07 7:40 
GeneralRe: Generic Pin
Not Active1-Jul-07 11:52
mentorNot Active1-Jul-07 11:52 
GeneralRe: Generic Pin
DavidNohejl1-Jul-07 13:19
DavidNohejl1-Jul-07 13:19 
GeneralRe: Generic Pin
Jeeva Jose2-Jul-07 19:15
Jeeva Jose2-Jul-07 19:15 
GeneralRe: Generic Pin
DavidNohejl3-Jul-07 1:57
DavidNohejl3-Jul-07 1:57 
Questionsaving image from screen Pin
HexaDeveloper1-Jul-07 3:29
HexaDeveloper1-Jul-07 3:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.