📄 aspitst.frm
字号:
VERSION 5.00
Begin VB.Form DialogBoxIso
Caption = "Form1"
ClientHeight = 4800
ClientLeft = 60
ClientTop = 450
ClientWidth = 5325
LinkTopic = "Form1"
ScaleHeight = 4800
ScaleWidth = 5325
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton DoImage
Caption = "Create Image Iso"
Height = 615
Left = 4200
TabIndex = 4
Top = 2640
Width = 975
End
Begin VB.TextBox IsofileName
Height = 375
Left = 1320
TabIndex = 2
Text = "Text1"
Top = 2640
Width = 2655
End
Begin VB.CommandButton Command1
Caption = "Inquiry"
Height = 495
Left = 3480
TabIndex = 1
Top = 600
Width = 1095
End
Begin VB.ListBox ListAspi
Height = 1815
Left = 600
TabIndex = 0
Top = 360
Width = 2775
End
Begin VB.Label IsoFileNameLabel
Caption = "IsoFileName:"
Height = 255
Left = 120
TabIndex = 3
Top = 2760
Width = 1095
End
End
Attribute VB_Name = "DialogBoxIso"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim aspihost(1 To 256) As ASPIINQUIRYTAB
nbhost = WimLargeAspiCdromInquiryFillArray(aspihost(1), 256)
ListAspi.Clear
For i = 1 To nbhost
strhost = ""
j = 1
While ((aspihost(i).szDeviceName(j) <> 0) And (j < 32))
strhost = strhost & Chr(aspihost(i).szDeviceName(j))
j = j + 1
Wend
ListAspi.AddItem (strhost)
Next
End Sub
Private Sub DoImage_Click()
Dim aspihost(1 To 256) As ASPIINQUIRYTAB
Dim totalsize As Long
nbhost = WimLargeAspiCdromInquiryFillArray(aspihost(1), 256)
selitem = 0
For i = 1 To nbhost
If ListAspi.Selected(i - 1) Then selitem = i
Next
totalsize = 0
If (selitem > 0) Then
Ima = CreateMemFatHima()
res1 = ReadFloppy(Ima, 0, 0, FL_USED)
'res = WimLargeReadAspiCDImage(DialogBoxIso.hWnd, aspihost(selitem).dwHost, aspihost(selitem).dwTargetID, IsofileName.Text, totalsize)
'res = WimLargeReadAspiCDImage(0, aspihost(selitem).dwHost, aspihost(selitem).dwTargetID, IsofileName.Text, totalsize)
res = WimLargeReadAspiCDImageIgnoreError(DialogBoxIso.hWnd, aspihost(selitem).dwHost, aspihost(selitem).dwTargetID, IsofileName.Text, totalsize, False)
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -