Have you checked whether you actually get a valid window handle?
The code above doesn't and exists only on the mutex check, regardless of
whether it found a window or not.
--
Deanna Earley (
dee.e...@icode.co.uk)
i-Catcher Development Team
http://www.icode.co.uk/icatcher/
iCode Systems
(Replies direct to my email address will be ignored. Please reply to the
group.)