Click here to Skip to main content
15,885,984 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Knowing if a window is going to be visible at creation Pin
led mike8-Aug-06 6:12
led mike8-Aug-06 6:12 
GeneralRe: Knowing if a window is going to be visible at creation Pin
Kharfax8-Aug-06 6:57
Kharfax8-Aug-06 6:57 
GeneralRe: Knowing if a window is going to be visible at creation Pin
led mike8-Aug-06 10:31
led mike8-Aug-06 10:31 
GeneralRe: Knowing if a window is going to be visible at creation Pin
Kharfax8-Aug-06 11:02
Kharfax8-Aug-06 11:02 
GeneralRe: Knowing if a window is going to be visible at creation Pin
led mike8-Aug-06 11:26
led mike8-Aug-06 11:26 
GeneralRe: Knowing if a window is going to be visible at creation [modified] Pin
Kharfax9-Aug-06 2:14
Kharfax9-Aug-06 2:14 
GeneralRe: Knowing if a window is going to be visible at creation Pin
Kharfax9-Aug-06 3:06
Kharfax9-Aug-06 3:06 
GeneralRe: Knowing if a window is going to be visible at creation Pin
led mike9-Aug-06 5:38
led mike9-Aug-06 5:38 
Kharfax wrote:
What do you think about this approach?

At this point I am not convinced that I have a complete understanding of the requirements.

Kharfax wrote:
I need to get only the applications that appear in the task administrator.

I guess you refer to the "Windows Task Manager" and the list of processes in the "Applications" tab?

If so there is a completely different way to accomplish that rather than using a System hook. There are APIs that allow you to get the list of running processes.

I would think some Google would find articles and sample code to get you much of the way there. There might even be a Code Project Article. The MSDN Documentation[^] on Process Enumeration is a good place to start if you want to figure it out for yourself.

One example approach might be using the GetStartupInfo() API that returns a STARTUPINFO structure. The structure has a member for which the documentation states:

lpTitle
    For console processes, this is the title displayed in the title bar if a new console 
window is created. If NULL, the name of the executable file is used as the window title 
instead. This parameter must be NULL for GUI or console processes that do not create a 
new console window.
dwX



led mike
GeneralRe: Knowing if a window is going to be visible at creation Pin
Kharfax9-Aug-06 5:59
Kharfax9-Aug-06 5:59 
GeneralRe: Knowing if a window is going to be visible at creation Pin
led mike9-Aug-06 12:12
led mike9-Aug-06 12:12 
GeneralRe: Knowing if a window is going to be visible at creation Pin
Kharfax10-Aug-06 2:23
Kharfax10-Aug-06 2:23 
GeneralRe: Knowing if a window is going to be visible at creation Pin
led mike10-Aug-06 4:41
led mike10-Aug-06 4:41 
QuestionSyntax problem Pin
Jay038-Aug-06 5:25
Jay038-Aug-06 5:25 
AnswerRe: Syntax problem Pin
Kharfax8-Aug-06 5:37
Kharfax8-Aug-06 5:37 
AnswerRe: Syntax problem Pin
David Crow8-Aug-06 5:37
David Crow8-Aug-06 5:37 
AnswerRe: Syntax problem Pin
Viorel.8-Aug-06 5:38
Viorel.8-Aug-06 5:38 
GeneralRe: Syntax problem Pin
Jay038-Aug-06 6:33
Jay038-Aug-06 6:33 
GeneralRe: Syntax problem Pin
Zac Howland8-Aug-06 6:35
Zac Howland8-Aug-06 6:35 
AnswerRe: Syntax problem Pin
Chris Losinger8-Aug-06 5:40
professionalChris Losinger8-Aug-06 5:40 
AnswerRe: Syntax problem Pin
Zac Howland8-Aug-06 5:42
Zac Howland8-Aug-06 5:42 
QuestionUsing IWebBrowser2 and Navigate. Need help! Thanks! Pin
Paul Groetzner8-Aug-06 5:23
Paul Groetzner8-Aug-06 5:23 
QuestionRe: Using IWebBrowser2 and Navigate. Need help! Thanks! Pin
David Crow8-Aug-06 5:39
David Crow8-Aug-06 5:39 
AnswerRe: Using IWebBrowser2 and Navigate. Need help! Thanks! Pin
Paul Groetzner8-Aug-06 5:49
Paul Groetzner8-Aug-06 5:49 
GeneralRe: Using IWebBrowser2 and Navigate. Need help! Thanks! Pin
David Crow8-Aug-06 6:18
David Crow8-Aug-06 6:18 
GeneralRe: Using IWebBrowser2 and Navigate. Need help! Thanks! Pin
Paul Groetzner8-Aug-06 6:34
Paul Groetzner8-Aug-06 6:34 

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.