You meant to use ExitWindowsEx(EWX_SHUTDOWN | EWX_FORCE, 0)?
Haven't written C for quite a while. I believed I tried it.
The desktop just flashed once and didn't shut down.
Could you expand the
tag, please? I am not a member
here so the autolink is not available.
Thank you.
>> ExitWindowsEx(EWX_SHUTDOWN, 0);
> You'll also probably need to use both EWX_FORCE and
> EWX_SHUTDOWN to avoid dialogs in any case.
>
> Under Win95, ExitWindowsEx doesn't function properly from a console
> application. See the MSDN documentation for details.
Regards,
Mr. Man-wai Chang