# Re: ExitWindowEx API

Posted by 陈凯程 on February 21, 1998 at 07:02:48:

In Reply to: Re: ExitWindowEx API posted by 普罗米修斯 on February 20, 1998 at 04:40:59:

: 请问应如何作

试试以下的 Declaration 吧！

Declare Function ExitWindowsEx Lib "user32" Alias "ExitWindowsEx" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long

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

Follow Ups: