API调用的问题!
Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As LongPrivate Sub Timer1_Timer()
Static i As Integer
i = i + 1
Form1.Caption = i
If i = 10 Then
ExitWindowsEx 2, 0
End If
End Sub
代码怎么不能重启电脑?
[ 本帖最后由 若无其事NIE 于 2009-11-16 19:32 编辑 ]