... than the previous one to find the task, thetask must have a Window open in the Z order ! ;-) The ultimate way to have the REAL result is with psapi.dll but it need a CALLBACK function and I'm not enough comfortable with C to do it ! ;-( Wich operating system did you test ? I think it's Windows ...