Does anyone know, with MFC or WinAPI, how to close the dos window in win95/98

after an operation has finnished? It's important for me to know when

the process has finnished (dos window closes). Under WinNT the dos-window

closes itself after the tasked has finnished, but under Win95/98

the dos-window is wating for user to close it :-(