Hi,
I'm trying to reboot my machine using WinApi func. ExitWindowsEx(2,0) and func. returns error.
GetLastError() tells me 1314(A required privilege is not held by the client. ERROR_PRIVILEGE_NOT_HELD) even if I'm logged in as admin.

Thanks,
vfrank

------------------