Try SetConsoleCtrlHandler as explained in MSDN under System Shutdown Reference http://msdn2.microsoft.com/en-us/library/aa376890.aspx
--- Devon McCormick <[EMAIL PROTECTED]> wrote: > Members of the Forum - > > I have a J process that runs in the background and spawns other processes. > The problem is, when I shut down my system, the shutdown halts with a > message > telling me the system couldn't shut down J and asking if I want to proceed. > > Does anyone know how I can catch the system shutdown signal, assuming there > is such a thing, and make my program a better (Windows) citizen? That is, > I'd > like it to shut itself down without requiring manual intervention when > everything else > is being shut down. > > Thanks, > > Devon McCormick, CFA > ^me^ at acm. > org is my > preferred e-mail > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ____________________________________________________________________________________ Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. http://tv.yahoo.com/collections/222 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
