使用函数关机时发生错误
代码如下:Private Declare Function exitwindowsex Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
-----------
Private Sub Form_Load()
Dim X As Long
Const EWX_SHUTDOWN = 1
Const ewx_logoff = 0
Const ewx_reboot = 2
Const ewx_force = 4
Const ewx_poweroff = 8
X = exitwindowsex(EWX_SHUTDOWN, dwReserved)
End Sub
--------------------------------------
为什么我运行时提示:实时错误‘453’:
找不到DLL入口点exitwindowsex in user32
这句话X = exitwindowsex(EWX_SHUTDOWN, dwReserved)报错
---------------------------------
请各位高手指点迷津!