⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 W32HLLP病毒清除工具,专门处理被W32HLLP感染的病毒档案.
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   2625
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6510
   LinkTopic       =   "Form1"
   ScaleHeight     =   2625
   ScaleWidth      =   6510
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "开始恢复"
      Height          =   495
      Left            =   2640
      TabIndex        =   2
      Top             =   1080
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "..."
      Height          =   375
      Left            =   5880
      TabIndex        =   1
      Top             =   240
      Width           =   495
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   120
      TabIndex        =   0
      Text            =   "请选择要恢复的文件"
      Top             =   240
      Width           =   5775
   End
   Begin MSComDlg.CommonDialog cDiag 
      Left            =   5760
      Top             =   2040
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim wFile As String

Private Sub Command1_Click()

On Error Resume Next

    With cDiag                      ' ask user for filename
        .DialogTitle = "选择要恢复的文件:"
        .ShowOpen
    End With
    
    wFile = cDiag.FileName
    Text1.Text = wFile
    
End Sub


Private Function WriteFile(ByVal wFile As String) As String
On Error GoTo ErrH
Dim lngTo As Long
Dim bByte As Byte

Const BASE = 58705


    Open wFile For Binary As #1
    
    For lngTo = 1 To BASE
        
        Put #1, lngTo, bByte
        
    Next
    
    Close #1

    Exit Function
ErrH:
    WriteFile = "WriteFile:" & Err.Description
End Function

Private Sub Command2_Click()
Dim strResult As String

    If wFile <> "" Then                 ' if user didn't abort
        
        strResult = WriteFile(wFile)
        
        If Len(strResult) Then
            MsgBox strResult, vbExclamation, "错误"
            Exit Sub
        End If
        
    End If

End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -