; reboot an nt system
.386
.model flat,stdcall
option casemap:none
;----------------------------------------------------------------
; with ReqNTPrivilege call, we ask for the 'SeShutdownPrivilege'
; note string names of possible privilege are in windows.inc
;----------------------------------------------------------------
invoke ReqNTPrivilege, SADD("SeShutdownPrivilege")
.if eax == FALSE
invoke MessageBox,NULL,addr msg_NotPL,addr AppName,MB_OK
invoke ExitProcess,NULL
.endif
invoke ExitWindowsEx, EWX_REBOOT , 0 ; For Reboot, use EWX_REBOOT
invoke ExitProcess,NULL
What are the possible consequences if I use the EWX-FORCE here. There is a printer program in memory that is delaying the reboot process.
Thanks.