This hook is called inside any of the system-mode loops, for instance, during size-tracking or move-tracking, or while a dialog box or menu is displayed.
The WM_QUIT message is passed to this hook, if it occurs during a mode loop.