How do I shut down Windows 2000?

I've tried the normal ExitWindowsEx API call but it doesn't work. I assume that the API function is different in NT than in 9x.

Any ideas what API function I should be using for NT based stuff?