Hey,

Does anyone know how i would go about shuting down a PC running XP. I have tried the standard stuff that worked with win98 e.t.c

Code:
ExitWindowsEx(EWX_SHUTDOWN | EWX_POWEROFF, 0);
also

Code:
ExitWindowsEx(EWX_SHUTDOWN, 0);

None of the above work,

Cheers
TNT