You use enumprocess in your code so you would have to embed the EnumProcess() - enum specific process PIDs and/or terminate them UDF or at least do a call to it in your code. Did not see that happening up until now.

Without this UDF the While loop is not working cause enumprocess is not used properly.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.