|
[ Previous entry: workBLOGS . API shutdown and maps ] [ Next entry: *Repaired* ] 02/18/2004: workBLOGS . API shutdown and maps This is the Windows 98SE-compatible snippet I use for shutting down the CPU. procedure SYSTEMSHUTDOWN There's a better one which can shutdown Windows XP and Windows 2000 and do a lot more 'cleaning up' procedures. I'll post that one later once I figure out to whom I can give credits for that code. One of the issues yesterday involves this 'automatic' shutting down of computers at a given time. There were no problems in the client computers but in the server module, which uses a mapped/shared virtually-created-drive approach, it shows this 'there are n users connecting to this computer... shutting down will make them whine and howl...' type of error. For a moment there which lasted for 10 minutes or even more, I was formulating solutions and knocking once again on the doors of WinAPI, hoping that there's a way I could somehow supress that confirmation. Only to realize that I can make things easier if I set a different shutdown time for the server and make it do the shutdown process after all the client PCs are knocked out. Yeah... sometimes the best solution to a problem are those little simple things we often overlook. Disclaimers are for castrated EARTHLINGS. Powered: GREYMatter | GM-RSS
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
