I have followed the sdk information as far as I know and now am able to RESTART, but what I'd like to be able to to is only LOG OFF. A piece of my code is below. I specify that I only want to log off rather than restart, but whatever options are in the code, my machine restarts, taking more time than I'd like.
case EVENT_COMMIT:
//only logs off the user, the second parameter is ignored in windows 2000
ExitWindowsEx(EWX_LOGOFF, 0);
break;