Check
How can I shut down or reboot Windows for all versions? FAQ #8009
>i want to shut down windows after a spesified time with ExitWindowsEx but i write like this :
>
>#DEFINE EWX_SHUTDOWN 1
>DECLARE INTEGER ExitWindowsEx IN user32;
> INTEGER uFlags, INTEGER dwReserved
>=ExitWindowsEx(EWX_SHUTDOWN, 0)
>
>but noting happend
--sb--