I'm working with a company on integrating their applications with Win95.
Their application creates a DOS box to dirve a communications card (definitely
not my idea!) and they need a good way to shutdown the DOS box, especially on
windows exit. They have another app that knows how to shut down the DOS box
cleanly; however, I can't find a way to run this app automatically at system
shutdown. Does anybody know of a way to run something automatically at system
shutdown? There's a registry key mentioned in the resource kit that sounds
good, HKEY_LOCAL_MACHINE/System/CurrentControlSet/Control/Shutdown, but
there's no info on how to use it.
The other options seem to be:
1) Write an app that waits for WM_QUERYENDSESSION and the does a
WinExec/CreateProcess on the unloader.
2) Add code to the app running in the DOS box to make it Windows aware (by
hooking int 2f?).
TIA for any ideas
Gordon Weakliem
gwe...@metronet.com