I found recently that calling TAPI's lineInitializeEx() without a corresponding lineShutdown() causes the visual studio debugger to hang for around 10 to 20 seconds on detach (shift-f5).
Is it possible to detect in my Windows CE application when the IDE requests the application debugger detach? On that hook, I want to be able to execute some cleanup code.
This will allow me to gracefully shut the application down - even when a developer uses 'shift-f5' from the IDE...