How to signal a system port when windows 2000 has shutdown ?
-
Hi, I was recently involved in a project where we wrote a simple program that listend to a signal on a port (COM/LPT) and on that signal it shutdown windows and after shutting down it sent back a signal letting the system know things went well. Now I have been asked if this could be done with windows 2000 (/xp) and have been contemplating various ways to achive this. But I cant find any information on how to acchive the "power down OK signal" that is soposed to be sent after windows has shutdown. Does anyone know how this could be achived ? (in a simple fashion, I mean writing my own HAL isn't something Im about to do) And is there someone who might know, ie. does Microsoft have anyone I can ask ? // MickeM
-
Hi, I was recently involved in a project where we wrote a simple program that listend to a signal on a port (COM/LPT) and on that signal it shutdown windows and after shutting down it sent back a signal letting the system know things went well. Now I have been asked if this could be done with windows 2000 (/xp) and have been contemplating various ways to achive this. But I cant find any information on how to acchive the "power down OK signal" that is soposed to be sent after windows has shutdown. Does anyone know how this could be achived ? (in a simple fashion, I mean writing my own HAL isn't something Im about to do) And is there someone who might know, ie. does Microsoft have anyone I can ask ? // MickeM
If I understand you correct, then, when Windows Starts up again you wanna send a signal through the port. Is that right? You can read the last date/time, where windows were shutting down, in the eventlog, you can also read when it was started again. You can calculate everything needed about shutdowns/boots/uptime from the data in the eventlog... - Anders Money talks, but all mine ever says is "Goodbye!"
-
If I understand you correct, then, when Windows Starts up again you wanna send a signal through the port. Is that right? You can read the last date/time, where windows were shutting down, in the eventlog, you can also read when it was started again. You can calculate everything needed about shutdowns/boots/uptime from the data in the eventlog... - Anders Money talks, but all mine ever says is "Goodbye!"
-
No, it is when windows *has* shutdown. Its a bit like ATX power, I want to as the last code executetd in windows (or as late as posible) tell the widget connected to the poert that "windows is now shutdown"... // MickeM