Windows Reboot USER32.DLL

Blitz3D Forums/Blitz3D Programming/Windows Reboot USER32.DLL

Filax(Posted 2003) [#1]
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 ???


Koriolis(Posted 2003) [#2]
Am I crazy or you've laredy posted this in the "userlib" forum? go see my answer there.