*snip*
>George,
>I think Derek misunderstood Ed Rauh's instructions earlier in the thread. I tested the shutdown based on Ed's code and had to modify because ExitProcess(0) also gave me an error but if I put the return in it worked ok. As for the option required in ExitWindowsEx(), I think Derek misread that bit. I will add the extra items you have given here to my own shutdown procedures. Thanks,
Nigel,
Glad to be of help. Let me know if there's anything else.
George
Ubi caritas et amor, deus ibi est