>Ed Rauh,
> I had tried the code you gave me,
> but even i use 0 = Login new user, 1 = Shutdown, 2 = Restart
> the result is login new user to windows. That is key in new user name and new password!!!
> I am using windows98 !!!!!
>
ExitWindowsEx(1,0) shuts down the system.
>regard,
>chang