Hello all,
I am displaying a Windows message box using the 'MessageBoxEx' API call. Now I am trying to implement an auto loggoff feature in my application that closes all the application windows and re-displays the Log-On dialog box after X minutes of inactivity in my application. But the problem is that the message box is still on the screen after auto loggoff. I now need a way to automatically close the message box if it is displayed. Does anyone know how to do this?

Thanks
Anthony