shutting down an vb exe when OS shuts down
Posted on 2002-07-14
i have an exe running which does some task after each 15 mins. i am using the Sleep API for the appl to sleep for the specific time period. as the exe would be running for the whole day, i would like that it should automatically close when the OS is shutting down (mostly it would be Windows NT,98 or 2000). right now it gives the "appl not responding error" while shutting down.
i actually want to know if some event is generated when the appl is closed using the task manager. i have alreaday tried the Query_Unload event.