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
API ExitWindowsEx
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
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
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Jose.
Joel,
see this topic in tips and tricks
viewtopic.php?t=3808
Joel,
see this topic in tips and tricks
viewtopic.php?t=3808
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm