in reply to Closing open Win32 Applications
I have run into situations where an application doesn't properly register itself in the ROT (Running Object Table), so GetActiveObject() doesn't "see" an app instance.
You can use a utility called IROTVIEW to view the ROT realtime.
-Nitrox
In Section
Seekers of Perl Wisdom