>George,
>
>Do you know if it's possible to trap the Windows Shutdown event and insert a VFP-based EXE at that spot? What I want to do is trap for the event and write an entry into a table.
>
>Thanks!
DD,
Startup is easy. Just add a shortcut to the Start Menu or the Windows\Run key under HKEY_CURRENT_USER.
Shut down is harder. VFP has limited abilities in sinking an event. In fact, I've never tried to do it. However, rather than going that route, my first inclination would be to look at ON SHUTDOWN or an SDI form's QueryUnload Event. I've never tested to see if the former fires in response to the Windows shut down messages. The latter
should, but again, I haven't tested.
George
Ubi caritas et amor, deus ibi est