Using VB2003 on Windows XP Pro
Why doesn't this work?
Public Class Form1
Inherits System.Windows. Forms.Form
Private Declare Auto Function ExitWindowsEx Lib "user32.dll " (ByVal
uFlags As Int32, ByVal dwreserved As Int32) As Int32
Private Sub Button3_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button3.Click
Dim retval As Int32
retval = ExitWindowsEx(2 + 4, 0)
End Sub
End Class
Why doesn't this work?
Public Class Form1
Inherits System.Windows. Forms.Form
Private Declare Auto Function ExitWindowsEx Lib "user32.dll " (ByVal
uFlags As Int32, ByVal dwreserved As Int32) As Int32
Private Sub Button3_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button3.Click
Dim retval As Int32
retval = ExitWindowsEx(2 + 4, 0)
End Sub
End Class
Comment