亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? setup1.bas

?? 數據庫課程設計
?? BAS
?? 第 1 頁 / 共 5 頁
字號:
    ' Create the new key, whose name is based on the app's name
   If Not RegCreateKey(HKEY_LOCAL_MACHINE, RegPathWinCurrentVersion(), strAppPaths & gstrSEP_DIR & strAppExe, hKey) Then
        GoTo Err
    End If
    
    fOk = True
    
    ' Default value indicates full EXE pathname
    fOk = fOk And RegSetStringValue(hKey, "", strAppDir & strAppExe)
    
    ' [Path] value indicates the per-app path
    If strPerAppPath <> "" Then
        fOk = fOk And RegSetStringValue(hKey, strAppPathKeyName, strPerAppPath)
    End If
    
    If Not fOk Then
        GoTo Err
    End If
    
    RegCloseKey hKey
    
    Exit Sub
    
Err:
    MsgError ResolveResString(resERR_REG), vbExclamation Or vbOKOnly, gstrTitle
    '
    ' If we are running an SMS install, we can't continue.
    '
    If gfSMS Then
        ExitSetup frmSetup1, gintRET_FATAL
    End If
End Sub

'-----------------------------------------------------------
' FUNCTION: AddQuotesToFN
'
' Given a pathname (directory and/or filename), returns
'   that pathname surrounded by double quotes if the
'   path contains spaces or commas.  This is required for
'   setting up an icon correctly, since otherwise such paths
'   would be interpreted as a pathname plus arguments.
'-----------------------------------------------------------
'
Function AddQuotesToFN(ByVal strFilename) As String
    If InStr(strFilename, " ") Or InStr(strFilename, ",") Then
        AddQuotesToFN = """" & strFilename & """"
    Else
        AddQuotesToFN = strFilename
    End If
End Function

'-----------------------------------------------------------
' SUB: CalcDiskSpace
'
' Calculates disk space required for installing the files
' listed in the specified section of the setup information
' file (SETUP.LST)
'-----------------------------------------------------------
'
Sub CalcDiskSpace(ByVal strsection As String)
    Static fSplitFile As Integer
    Static lDestFileSpace As Long

    Dim intIdx As Integer
    Dim intDrvIdx As Integer
    Dim sFile As FILEINFO
    Dim strDrive As String
    Dim lThisFileSpace As Long

    intIdx = 1

    On Error GoTo CalcDSError

    '
    'For each file in the specified section, read info from the setup info file
    '
    Do While ReadSetupFileLine(strsection, intIdx, sFile) = True
        '
        'if the file isn't split or if this is the first section of a split file
        '
        If sFile.strDestDir <> vbNullString Then
            fSplitFile = sFile.fSplit

            '
            'Get the dest drive used for this file.  If this is the first file using
            'the drive for a destination, add the drive to the drives used 'table',
            'allocate an array element for the holding the drive info, and get
            'available disk space and minimum allocation unit
            '
            strDrive = Left$(sFile.strDestDir, 1)
        
            intDrvIdx = InStr(gstrDrivesUsed, strDrive)
            If intDrvIdx = 0 Then
                gstrDrivesUsed = gstrDrivesUsed & strDrive
                intDrvIdx = Len(gstrDrivesUsed)

                ReDim Preserve gsDiskSpace(intDrvIdx)
                gsDiskSpace(intDrvIdx).lAvail = GetDiskSpaceFree(strDrive)

                gsDiskSpace(intDrvIdx).lMinAlloc = GetDrivesAllocUnit(strDrive)
            End If

            '
            'Calculate size of the dest final (file size + minimum allocation for drive)
            '
            lThisFileSpace = CalcFinalSize(sFile.lFileSize, strDrive)
            mlTotalToCopy = mlTotalToCopy + lThisFileSpace

            '
            'If the file already exists, then if we copy it at all, we'll be
            'replacing it.  So, we get the size of the existing dest file so
            'that we can subtract it from the amount needed later.
            '
            If FileExists(sFile.strDestDir & sFile.strDestName) Then
                lDestFileSpace = FileLen(sFile.strDestDir & sFile.strDestName)
            Else
                lDestFileSpace = 0
            End If
        End If

        '
        'If file not split, or if the last section of a split file
        '
        If sFile.fSplit = False Then
            '
            'If this is the last section of a split file, then if it's the *largest*
            'split file, set the extra space needed for concatenation to this size
            '
            If fSplitFile = True And lThisFileSpace > mlSpaceForConcat Then
                mlSpaceForConcat = lThisFileSpace
            End If

            '
            'Subtract size of existing dest file, if applicable and then accumulate
            'space required
            '
            lThisFileSpace = lThisFileSpace - lDestFileSpace
            If lThisFileSpace < 0 Then
                lThisFileSpace = 0
            End If

            gsDiskSpace(intDrvIdx).lReq = gsDiskSpace(intDrvIdx).lReq + lThisFileSpace
        End If

        intIdx = intIdx + 1
    Loop

    Exit Sub

CalcDSError:
    MsgError Error$ & vbLf & vbLf & ResolveResString(resCALCSPACE), vbCritical, gstrSETMSG
    ExitSetup frmMessage, gintRET_FATAL
End Sub

'-----------------------------------------------------------
' SUB: CalcFinalSize
'
' Computes the space required for a file of the size
' specified on the given dest path.  This includes the
' file size plus a padding to ensure that the final size
' is a multiple of the minimum allocation unit for the
' dest drive
'-----------------------------------------------------------
'
Function CalcFinalSize(lBaseFileSize As Long, strDestPath As String) As Long
    Dim lMinAlloc As Long
    Dim intPadSize As Long

    lMinAlloc = gsDiskSpace(InStr(gstrDrivesUsed, Left$(strDestPath, 1))).lMinAlloc
    intPadSize = lMinAlloc - (lBaseFileSize Mod lMinAlloc)
    If intPadSize = lMinAlloc Then
        intPadSize = 0
    End If

    CalcFinalSize = lBaseFileSize + intPadSize
End Function

'-----------------------------------------------------------
' SUB: CenterForm
'
' Centers the passed form just above center on the screen
'-----------------------------------------------------------
'
Sub CenterForm(frm As Form)
    SetMousePtr vbHourglass

    frm.Top = (Screen.Height * 0.85) \ 2 - frm.Height \ 2
    frm.Left = Screen.Width \ 2 - frm.Width \ 2

    SetMousePtr gintMOUSE_DEFAULT
End Sub
'-----------------------------------------------------------
' SUB: UpdateDateTime
'
' Updates the date/time for bootstrap files
'-----------------------------------------------------------
'
Sub UpdateDateTime()
    Dim intIdx As Integer
    Dim sFile As FILEINFO
    Dim lTime As FileTime
    Dim hFile As Long
    '
    'For each file in the specified section, read info from the setup info file
    '
    intIdx = 1
    Do While ReadSetupFileLine(gstrINI_BOOTFILES, intIdx, sFile) = True
        Dim sCurDate As String, sFileDate As String
        
        sFileDate = Format(FileDateTime(sFile.strDestDir & sFile.strDestName), "m/d/yyyy h:m")
        sCurDate = Format(Now, "m/d/yyyy h:m")
        
        If sFileDate = sCurDate Then
            lTime = GetFileTime(sFile.varDate)
            hFile = CreateFile(sFile.strDestDir & sFile.strDestName, GENERIC_WRITE Or GENERIC_READ, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0)
            Call SetFileTime(hFile, lTime, lTime, lTime)
            DoEvents
            CloseHandle hFile
        End If
        intIdx = intIdx + 1
    Loop
    
End Sub

'-----------------------------------------------------------
' FUNCTION: CheckDiskSpace
'
' Reads from the space required array generated by calling
' the 'CalcDiskSpace' function and determines whether there
' is sufficient free space on all of the drives used for
' installation
'
' Returns: True if there is enough space, False otherwise
'-----------------------------------------------------------
'
Function CheckDiskSpace() As Integer
    Static fDontAskOnSpaceErr As Integer

    Dim intIdx As Integer
    Dim intTmpDrvIdx As Integer
    Dim lDiskSpaceLeft As Long
    Dim lMostSpaceLeft As Long
                                             
    '
    'Default to True (enough space on all drives)
    '
    CheckDiskSpace = True

    '
    'For each drive that is the destination for one or more files, compare
    'the space available to the space required.
    '
    For intIdx = 1 To Len(gstrDrivesUsed)
        lDiskSpaceLeft = gsDiskSpace(intIdx).lAvail - gsDiskSpace(intIdx).lReq
        If lDiskSpaceLeft < 0 Then
            GoSub CheckDSAskSpace
        Else
            '
            'If no "TMP" drive was found, or if the "TMP" drive wasn't ready,
            'save the index of the drive and the amount of space on the drive
            'which will have the most free space.  If no "TMP" drive was
            'found in InitDiskInfo(), then this drive will be used as a
            'temporary drive for concatenating split files
            '
            If mstrConcatDrive = vbNullString Then
                If lDiskSpaceLeft > lMostSpaceLeft Then
                    lMostSpaceLeft = lDiskSpaceLeft
                    intTmpDrvIdx = intIdx
                End If
            Else
                '
                '"TMP" drive was specified, so we'll use that
                '
                If Left$(mstrConcatDrive, 1) = Mid$(gstrDrivesUsed, intIdx, 1) Then
                    intTmpDrvIdx = intIdx
                End If
            End If
        End If
    Next

    '
    'If at least one drive was specified as a destination (if there was at least
    'one CalcDiskSpace call in Form_Load of SETUP1.FRM), then subtract the extra
    'space needed for concatenation from either:
    '   The "TMP" drive if available  - OR -
    '   The drive with the most space remaining
    '
    If intTmpDrvIdx > 0 Then
        gsDiskSpace(intTmpDrvIdx).lReq = gsDiskSpace(intTmpDrvIdx).lReq + mlSpaceForConcat
        If gsDiskSpace(intTmpDrvIdx).lAvail < gsDiskSpace(intTmpDrvIdx).lReq Then
            GoSub CheckDSAskSpace
        End If

        '
        'If a "TMP" drive was found, we use it regardless, otherwise we use the drive
        'with the most free space
        '
        If mstrConcatDrive = vbNullString Then
            mstrConcatDrive = Mid$(gstrDrivesUsed, intTmpDrvIdx, 1) & gstrCOLON & gstrSEP_DIR
            AddDirSep mstrConcatDrive
        End If
    End If

    Exit Function

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
94色蜜桃网一区二区三区| 精品捆绑美女sm三区| 国产一区二区在线观看视频| 国产精品你懂的| 日韩一区二区三区观看| 91麻豆蜜桃一区二区三区| 久久国产精品99久久久久久老狼| 亚洲人成在线播放网站岛国| 国产午夜精品在线观看| 678五月天丁香亚洲综合网| a亚洲天堂av| 国产高清久久久| 免费成人深夜小野草| 亚洲成人一区在线| 亚洲视频1区2区| 欧美激情在线一区二区| 日韩欧美精品三级| 56国语精品自产拍在线观看| 一本久久a久久精品亚洲| 成人动漫精品一区二区| 国产成人av一区二区三区在线观看| 日本一区中文字幕| 亚洲一区自拍偷拍| 亚洲日本成人在线观看| 中文字幕精品综合| 国产午夜精品一区二区三区嫩草| 日韩一卡二卡三卡国产欧美| 欧美精品777| 欧美日韩免费电影| 欧美日韩国产成人在线免费| 在线观看91精品国产入口| 99久久精品免费看| 成人高清伦理免费影院在线观看| 国产精品亚洲一区二区三区妖精 | 欧美人牲a欧美精品| 色综合久久99| 色婷婷久久久久swag精品| 色菇凉天天综合网| 91在线观看成人| 91丝袜美女网| 91极品视觉盛宴| 欧美日韩激情在线| 欧美一区三区四区| 欧美一区二区三区人| 欧美一级一区二区| 精品久久久久久亚洲综合网| 久久综合精品国产一区二区三区| 精品sm在线观看| 久久久久久久性| 国产精品久久久久9999吃药| 亚洲视频在线观看三级| 亚洲精品日韩综合观看成人91| 一区二区三区在线视频免费观看| 伊人色综合久久天天| 亚洲国产一区二区在线播放| 午夜精品福利在线| 久久99国产精品久久99| 国产盗摄精品一区二区三区在线| 成人小视频在线观看| 色呦呦国产精品| 91精品国产一区二区人妖| 精品乱码亚洲一区二区不卡| 欧美韩国日本一区| 一个色在线综合| 蜜臀91精品一区二区三区| 国产久卡久卡久卡久卡视频精品| 成人黄色av电影| 欧美日本韩国一区二区三区视频| 欧美本精品男人aⅴ天堂| 日本一区二区三区四区在线视频 | 国产999精品久久久久久绿帽| 岛国精品在线播放| 在线观看免费成人| 欧美成人女星排行榜| 中文字幕一区二区三| 舔着乳尖日韩一区| 国产综合色在线| 色综合久久久久久久久| 欧美变态凌虐bdsm| 一区二区三区在线看| 久久精品999| 99久久精品免费精品国产| 91精品国产黑色紧身裤美女| 国产人成亚洲第一网站在线播放| 亚洲精品视频免费看| 美国毛片一区二区| 99re热视频这里只精品| 日韩亚洲欧美一区二区三区| 成人免费在线播放视频| 免费成人在线视频观看| 91在线播放网址| 久久亚洲一区二区三区明星换脸| 亚洲精品国久久99热| 国产一区中文字幕| 欧美午夜不卡视频| 国产精品传媒入口麻豆| 日韩va欧美va亚洲va久久| jvid福利写真一区二区三区| 宅男噜噜噜66一区二区66| 中文字幕日韩一区二区| 久久成人免费网| 欧美男生操女生| 中文字幕视频一区| 国产91精品精华液一区二区三区| 4438x亚洲最大成人网| 中文字幕不卡在线播放| 久久国产视频网| 精品视频在线免费观看| 1024亚洲合集| 国产成人午夜99999| 日韩视频免费观看高清完整版 | 国产午夜亚洲精品理论片色戒| 亚洲va韩国va欧美va| 99国产精品视频免费观看| 久久精品夜夜夜夜久久| 美洲天堂一区二卡三卡四卡视频| 色婷婷久久久综合中文字幕| 国产精品的网站| 国产成人综合在线播放| 精品国产一区二区三区久久影院 | 在线观看免费视频综合| 亚洲欧美怡红院| 成人av在线资源网站| 国产日韩欧美精品电影三级在线| 午夜视频久久久久久| 欧美日精品一区视频| 亚洲自拍偷拍麻豆| 91色九色蝌蚪| 亚洲人成在线播放网站岛国| www.成人网.com| 亚洲视频在线一区二区| 99re亚洲国产精品| 亚洲欧美国产毛片在线| 色综合久久久久| 亚洲精选免费视频| 91久久国产最好的精华液| 亚洲综合在线免费观看| 在线观看亚洲一区| 香蕉久久一区二区不卡无毒影院| 欧美日韩视频一区二区| 爽爽淫人综合网网站| 91精品国产免费| 精品午夜久久福利影院| 久久久久久久久岛国免费| 国产麻豆成人传媒免费观看| 久久精品在线观看| 本田岬高潮一区二区三区| 中文字幕一区二区在线观看| 91亚洲精华国产精华精华液| 亚洲夂夂婷婷色拍ww47| 欧美日韩久久久| 久久精品国产亚洲高清剧情介绍| 久久久久久久久久久久久久久99| 国产成人免费9x9x人网站视频| 国产精品女主播av| 欧美影视一区二区三区| 天堂午夜影视日韩欧美一区二区| 日韩三级中文字幕| 国产精品亚洲一区二区三区妖精 | 日韩美女精品在线| 在线一区二区视频| 免费在线观看日韩欧美| 国产午夜精品福利| 91亚洲精华国产精华精华液| 视频一区二区中文字幕| 久久久久99精品一区| 99热这里都是精品| 亚洲高清不卡在线| 精品国产91乱码一区二区三区| 粉嫩aⅴ一区二区三区四区| 亚洲夂夂婷婷色拍ww47| 精品伦理精品一区| 一本在线高清不卡dvd| 日本伊人色综合网| 国产精品久久久久久久久久免费看 | 亚洲一区二区三区四区的| 欧美成人一区二区三区片免费| 成人av网址在线| 午夜精品福利久久久| 久久蜜桃av一区精品变态类天堂| 一本一道波多野结衣一区二区| 久久久久97国产精华液好用吗| 欧美日韩三级在线| 日韩激情一区二区| 国产欧美一区二区三区沐欲| 日本高清免费不卡视频| 九色|91porny| 一区二区三区小说| 精品福利一二区| 色999日韩国产欧美一区二区| 激情文学综合丁香| 亚洲永久免费av| 久久精品一区二区| 欧美一区二区三区免费大片| 成+人+亚洲+综合天堂| 久久99精品久久只有精品| 亚洲午夜精品17c| 中文字幕亚洲精品在线观看| 精品国产免费一区二区三区四区 | 粗大黑人巨茎大战欧美成人|