Tasklist simulator for win 9x....

Hi

I need source code for list all files in tasklist (exactly identical) in windows 9x...
Please... dont send to me the "process list"... I need only get the programs list in taskmanager...

thanks

masvmasvAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jkrCommented:
See the following MS KB article:

 HOWTO: Enumerate Applications in Win32
 http://support.microsoft.com/support/kb/articles/Q175/0/30.ASP


This should provide all the necessary information on how to do that.

Feel fre to ask if you need more information!
0
masvmasvAuthor Commented:
Thanks...

But I need list only process visible in TaskList and don't all processes..

I need show only processes "visible" in tasklist...
0
jkrCommented:
So you think of the processes in the task bar?
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

masvmasvAuthor Commented:
Hi...
I need only list the processes  "visible" in taskmanager...
If I use the enumprocess() ... list all process...
0
jkrCommented:
Aaah, now I see what you mean - Win9x doesn't display all running processes (using NT mostly, I wasn't aware of that)

You'll have to use the code from the above KB article to find all processes and find out whether they are visible using the following code for each PID (process ID) that is listed:

// globals
HWND  g_hwnd;
int   g_bVisible;

BOOL CALLBACK FindHwndFromPID( HWND hwnd, LPARAM lParam) :


BOOL IsProcessVisible( DWORD dwProcessId)
{
 g_hwnd = NULL;
 g_bVisible = FALSE;

 EnumWindows (  FindHwndFromPID,    ( LPARAM) dwProcessId));

 if ( g_bVisible )  // we found one...
      return ( TRUE);

 // nothing found :-(

 return (NULL);
}

BOOL CALLBACK FindHwndFromPID( HWND hwnd, LPARAM lParam)
{
    DWORD   dwPID2Find  =   ( DWORD) lParam;
    DWORD   dwPID       =   0;

    if  (   GetWindowThreadProcessId    (   hwnd,   &dwPID))
        {
            if  (   dwPID   ==  dwPID2Find)
                {
                    g_hwnd  =   hwnd;

                    g_ bVisible =  TRUE;

                    return  (   FALSE);
                }
        }

    return  (   TRUE);
}
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jkrCommented:
Ooops, sorry,

 // nothing found :-(

 return (NULL);


should of course read

 // nothing found :-(

 return (FALSE);
0
masvmasvAuthor Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.