Skip to content

Commit a8646c5

Browse files
committed
优化联想模拟关机 - 20241227
1 parent b443958 commit a8646c5

39 files changed

+2145
-2080
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,27 @@
2323

2424
早期版本的源代码也在发布页里。
2525

26+
## 数字签名
27+
28+
本程序使用了自签证书进行了签名
29+
30+
证书信息:
31+
```
32+
Name: CJH Root Certificate
33+
Create: ‎2024‎年‎12‎月‎27‎日 20:42:16
34+
Expires: ‎2150‎年‎12‎月‎31‎日 0:00:00
35+
SHA256: d2d67c8ebea3cc954c7ee0e94f5f45537dde7709053ca9e89f352fda602833e5
36+
SHA1: 73b80a8d0ba3f662b575f2fc0b78612469e22e59
37+
MD5: 0bc507db70947e57ddd81bec63b581d9
38+
Key Number: dbde77418068d5a34b2064626a12ecde
39+
KeyID: d929e453f645017190dac5001a736a4d
40+
Certificate SerialNumber: dbde77418068d5a34b2064626a12ecde
41+
Key fingerprint: 73b80a8d0ba3f662b575f2fc0b78612469e22e59
42+
Key Type: md5RSA
43+
```
44+
45+
你可以在[这里](https://github.com/cjhdevact/UsefulControl/blob/master/Src/UsefulControl/files/rootcert.cer)下载证书来验证程序完整性。
46+
2647
## 程序截图
2748

2849
### 工具栏界面

Src/PackOut.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ copy %~dp0UsefulControl\files\3-
1212
copy %~dp0UsefulControl\files\4-添加Userinit级自动启动该程序.bat %~dp0UsefulControl-Bin\4-添加Userinit级自动启动该程序.bat
1313
copy %~dp0UsefulControl\files\5-删除Userinit级自动启动该程序.bat %~dp0UsefulControl-Bin\5-删除Userinit级自动启动该程序.bat
1414
copy %~dp0UsefulControl\files\UsefulControlAdmxs.exe %~dp0UsefulControl-Bin\UsefulControlAdmxs.exe
15+
copy %~dp0UsefulControl\files\certmgr.exe %~dp0UsefulControl-Bin\certmgr.exe
16+
copy %~dp0UsefulControl\files\rootcert.cer %~dp0UsefulControl-Bin\rootcert.cer
1517
copy %~dp0UsefulControl\files\UsefulControl.xml %~dp0UsefulControl-Bin\UsefulControl.xml
1618
echo.
1719
echo 完成!

Src/SignBin.bat

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
::Tips Set the CSIGNCERT as your path.
2+
@echo off
3+
path D:\ProjectsTmp\SignPack;%path%
4+
echo 任意键签名 实用工具集合小工具(UsefulControl)...
5+
pause > nul
6+
cmd.exe /c signcmd.cmd "%CSIGNCERT%" "%~dp0UsefulControl-Bin\UsefulControl.exe"
7+
cmd.exe /c signcmd.cmd "%CSIGNCERT%" "%~dp0UsefulControl-Bin\UsefulControl64.exe"
8+
cmd.exe /c signcmd.cmd "%CSIGNCERT%" "%~dp0UsefulControl-Bin\UsefulControlAdmxs.exe"
9+
echo.
10+
echo 完成!
11+
echo 任意键退出...
12+
pause > nul

Src/UsefulControl.suo

2 KB
Binary file not shown.

Src/UsefulControl/BlackForm.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'****************************************************************************
22
' UsefulControl
3-
' Copyright (C) 2023-2024 CJH
3+
' Copyright (C) 2023-2025 CJH
44
'
55
' This program is free software: you can redistribute it and/or modify
66
' it under the terms of the GNU General Public License as published by

Src/UsefulControl/BootForm.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'****************************************************************************
22
' UsefulControl
3-
' Copyright (C) 2023-2024 CJH
3+
' Copyright (C) 2023-2025 CJH
44
'
55
' This program is free software: you can redistribute it and/or modify
66
' it under the terms of the GNU General Public License as published by

Src/UsefulControl/FakeShutdownForm.Designer.vb

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Src/UsefulControl/FakeShutdownForm.resx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,11 @@
599599
<metadata name="Timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
600600
<value>17, 17</value>
601601
</metadata>
602+
<metadata name="Timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
603+
<value>109, 17</value>
604+
</metadata>
602605
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
603-
<value>26</value>
606+
<value>32</value>
604607
</metadata>
605608
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
606609
<value>

Src/UsefulControl/FakeShutdownForm.vb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'****************************************************************************
22
' UsefulControl
3-
' Copyright (C) 2023-2024 CJH
3+
' Copyright (C) 2023-2025 CJH
44
'
55
' This program is free software: you can redistribute it and/or modify
66
' it under the terms of the GNU General Public License as published by
@@ -72,10 +72,17 @@ Public Class FakeShutdownForm
7272
Me.Label1.Visible = False
7373
If FakeMode = 1 Then
7474
Me.TableLayoutPanel1.BackgroundImage = My.Resources.lenovoshut
75+
Timer2.Interval = 5 * 60 * 1000
76+
Timer2.Enabled = True
7577
Else
7678
SeewoFakeShut.Show()
7779
End If
7880
'Form1.ChangeMonitorState(Form1.MonitorMode.MonitorOff)
7981
Timer1.Enabled = False
8082
End Sub
83+
84+
Private Sub Timer2_Tick(sender As System.Object, e As System.EventArgs) Handles Timer2.Tick
85+
Me.TableLayoutPanel1.BackgroundImage = Nothing
86+
Timer2.Enabled = False
87+
End Sub
8188
End Class

Src/UsefulControl/Form1.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'****************************************************************************
22
' UsefulControl
3-
' Copyright (C) 2023-2024 CJH
3+
' Copyright (C) 2023-2025 CJH
44
'
55
' This program is free software: you can redistribute it and/or modify
66
' it under the terms of the GNU General Public License as published by

0 commit comments

Comments
 (0)