home *** CD-ROM | disk | FTP | other *** search
- int export KilledNotify_hook(int ID)
- {
- string port = ReadInfo("_notifyport", ID);
- if(strlen(port)) {
- ARexxSend(port, "!"); /* just send anything, don't wait for reply! */
- }
- if (ReadInfo("_iconify_when_quit"))
- Iconify();
- }
-
- ConstructInfo("_notifyport", "", "", "HLS", "", 0, 0);
- ConstructInfo("_iconify_when_quit", "", "", "HLB", "", 0, 0);
- Hook("BufferKill", "KilledNotify_hook");
-