Part of code for an NT system. I want it to shut down a
printer programand then reboot.

This isn't quite working. Do I need to combine it with
EWX_REBOOT and if so, how would I do it.

invoke ExitWindowsEx, EWX_FORCE, 0 ; For Reboot, use
EWX_REBOOT
invoke ExitProcess,NULL

Thanks.