Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Win95: Executing an application on system shutdown

0 views
Skip to first unread message

Gordon Weakliem

unread,
Jun 2, 1996, 3:00:00 AM6/2/96
to

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

Nik Okuntseff

unread,
Jun 2, 1996, 3:00:00 AM6/2/96
to Gordon Weakliem

One of the ways is to write a service which handles SHUTDOWN control code. I am not sure if
this is going to work with Win 95. This wil work for NT, probably for 95 too.

0 new messages