Page 1 of 1

Posted: Fri Feb 21, 2003 11:17 pm
by BackupUser
Restored from previous forum. Originally posted by Joël Roly.

Hi...

I seek information on the API one to close Windows under XP and 2000
ret.l = ExitWindowsEx_( 1, 0)
do not function

Thank you in advance

Posted: Sat Feb 22, 2003 12:16 am
by BackupUser
Restored from previous forum. Originally posted by freak.

From the SDK:

Windows NT/2000/XP: To shut down or restart the system, the calling process must use the AdjustTokenPrivileges function to enable the SE_SHUTDOWN_NAME privilege.

I don't know much about ths privileges stuff, so you'll have to read and try that for yourself.

Timo

Posted: Sat Feb 22, 2003 2:11 am
by BackupUser
Restored from previous forum. Originally posted by Jose.

Joel,
see this topic in tips and tricks
viewtopic.php?t=3808

Posted: Thu Feb 27, 2003 12:19 am
by BackupUser
Restored from previous forum. Originally posted by Joël Roly.

Thank you with all for your good councils.
My program functions well.

Joël