Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Log shutdown/start up in Win 98

Status
Not open for further replies.

kevink

Programmer
Nov 23, 1999
53
IE
Is there any way to capture a shutdown event in Win 98? I want to log when the computer is started/shutdown.

TIA

Kevin
 
I believe Windows sends a message:
CTRL_SHUTDOWN_EVENT or CTRL_LOGOFF_EVENT
to each console application when it shuts down. You could write a little app. that sits and waits for this message then writes something to a log file. I bet somebody has already done this. Why not try one of the C/C++ or VB forums?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top