I have an ActiveX control that runs in another application, doing various functions. I want to stop the application from closing while my ActiveX control is still running.

Is it possible to hook WM_DESTROY and cancel it?

TIA,

rokujou