home *** CD-ROM | disk | FTP | other *** search
- Sub cmdRestart_Click ()
- Dim RetVal%
- Dim DgDef, DgDef2, Msg, Msg2, Response, Title
- Title = "My Windows Shell"
- Msg = "This will restart Windows. Are you sure?"
- DgDef = MB_YESNO + MB_ICONSTOP
- Response = MsgBox(Msg, DgDef, Title)
- If Response = IDYES Then
- RetVal% = ExitWindows(66, 0)
- Else
- Exit Sub
- End If
- End Sub
-