Hi Michel!
You can also use InitiateSystemShutdown function that works only on NT
platform...
Will Write Login Scripts For Food
>In the FAQ, their is an entry to exit Windows '95. I would like to do the
>same on Windows NT 3.51. Is this code still applicable?
>
>* Exit and Restart Windows
>* lnExitType=66 && 66=exit and restart 67=exit for good
>DECLARE INTEGER ExitWindowsEx IN user32 INTEGER, INTEGER
>lnExitWindows=ExitWindowsEx(lnExitType,0)
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer