ExitWindowsEx help needed

Giganews Newsgroups
Subject: ExitWindowsEx help needed
Posted by:  Andrew Kennedy (andrewkenned…@LOGev1.net)
Date: Mon, 01 Mar 2004

My Win32 help says this has to be a combination of two of the values below.

elseif uMsg == WM_COMMAND
if wParam == IDOK
invoke ExitWindowsEx,EWX_SHUTDOWN or EWX_FORCE,0

So is this saying it will try a controlled shutdown first and if not it forces
a shutdown.

And what two combinations are used for reboot and poweroff.

Thanks.
; EWX_LOGOFF equ 0
; EWX_SHUTDOWN equ 1
; EWX_REBOOT equ 2
; EWX_FORCE equ 4
; EWX_POWEROFF equ 8

Replies