Windows Reboot USER32.DLL

Blitz3D Forums/Blitz3D Programming/Windows Reboot USER32.DLL

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

in user32.decls :

; User32.decls
;-----------------
.lib "user32.dll"
User32_ExitWindowsEx% (nIndex%,nNull%) : "ExitWindowsEx"


and BlitzCode :

Const EWX_FORCE% = 4
Const EWX_LOGOFF% = 0
Const EWX_REBOOT% = 2
Const EWX_SHUTDOWN% = 1

User32_ExitWindowsEx% (EWX_REBOOT%,0)

Why only EWX_LOGOFF% and EWX_FORCE% work ???