📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "实现Windows的重新启动"
ClientHeight = 2025
ClientLeft = 60
ClientTop = 345
ClientWidth = 3930
LinkTopic = "Form1"
ScaleHeight = 2025
ScaleWidth = 3930
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command3
Caption = "退出"
Height = 420
Left = 720
TabIndex = 2
Top = 1365
Width = 2565
End
Begin VB.CommandButton Command2
Caption = "关闭计算机"
Height = 420
Left = 720
TabIndex = 1
Top = 795
Width = 2565
End
Begin VB.CommandButton Command1
Caption = "重新启动计算机"
Height = 420
Left = 720
TabIndex = 0
Top = 225
Width = 2565
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Function exitwindows Lib "User" (ByVal dwReturnCode As Long, ByVal wReserved As Integer) As Integer
Dim myval As Integer
Private Sub Command1_Click()
'重新启动计算机
myval = exitwindows(&H43, 0)
End Sub
Private Sub Command2_Click()
'关闭计算机
myval = exitwindows(&H42, 0)
End Sub
Private Sub Command3_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -