The WM_APPTERMINATENOTIFY message provides the capability for the starting application to be notified when the started application terminates.