I've been having trouble with the InitiateSystemShutdown function. It keeps returning a value of 0 (meaning that it failed). Here's the code I've been using.

InitiateSystemShutdown(NULL, NULL, 0, FALSE, TRUE)



I used GetLastError() to see whats going on, but theres no error number 6683144. Any ideas? Any help would be appreciated. Thanks.

Rich