Enumerate all top level windows

Hi,
I am using VC++ 6.0.

I want to get all the applications currently running on the system.
How to enumerate the same? I have used EnumWindows API. To the same I have passed the address of the call back function. Now which API do I need to use in this call back function so that I can get all the applications running currently.

I want only Application name not their class name.
Suppose currently IE,MSWORD,PageMaker are running then it should give only these three names.

Please Reply.

Comments

  • : see this tech article
    :
    : http://support.microsoft.com/kb/175030/EN-US/
    :
    :
    Hi , Thanks for Help.
    Can u please send me the contents of the above link at dipen.it.83@gmail.com as in my company I don't have access to microsoft.com.

    Please help.
    Bye.


  • : : see this tech article
    : :
    : : http://support.microsoft.com/kb/175030/EN-US/
    : :
    : :
    : Hi , Thanks for Help.
    : Can u please send me the contents of the above link at dipen.it.83@gmail.com as in my company I don't have access to microsoft.com.
    :
    : Please help.
    : Bye.
    :
    :

    OMG: you have access to this board but not Microsoft? How in the world does you employer expect you to do any research?

    your e-mail address was rejected by my e-mail server.
  • : : : see this tech article
    : : :
    : : : http://support.microsoft.com/kb/175030/EN-US/
    : : :
    : : :
    : : Hi , Thanks for Help.
    : : Can u please send me the contents of the above link at dipen.it.83@gmail.com as in my company I don't have access to microsoft.com.
    : :
    : : Please help.
    : : Bye.
    : :
    : :
    :
    : OMG: you have access to this board but not Microsoft? How in the world does you employer expect you to do any research?
    :
    : your e-mail address was rejected by my e-mail server.
    :
    ----------------------------------------------------------------------
    I visited the link and tried the function GetWindowText for every handle enumerated. It works fine. But it lists all the proesses related to a particular application. E.g.for Winamp it lists Winamp Equalizer,Winamp Library,Winamp Video etc..

    Also it lists some texts repetedly (8 to 10 times) like 'OleMainThradWndName','OleChangeWnd' etc..

    I don't want all these. If My front end applications are Internet Explorer,Delphi and Winamp then it should list only those. Now how to process the Handle returned by EnumWindow so that I can achieve the same?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories