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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? common.bas

?? 用VB編寫的學(xué)生成績管理系統(tǒng)主要的功能有學(xué)生信息
?? BAS
?? 第 1 頁 / 共 5 頁
字號:
'------------------------------------------------------------
'- Language Functions...
'------------------------------------------------------------
Private Function PRIMARYLANGID(ByVal LCID As Integer) As Integer
    PRIMARYLANGID = (LCID And &H3FF)
End Function
Private Function SUBLANGID(ByVal LCID As Integer) As Integer
    SUBLANGID = (LCID / (2 ^ 10))
End Function

'-----------------------------------------------------------
' Function: GetUserCharset
'
' Get's the default user character set
'
' OS: Win 95 & NT 4 or newer
'-----------------------------------------------------------
Private Function GetUserCharset() As Integer
    Dim ls  As LOCALESIGNATURE                              ' local signature struct.
    Dim ci  As CHARSETINFO                                  ' character set info struct.
    Dim rc  As Long                                         ' return code
    ' get locale signature based on the USER's Default LCID.
    rc = GetLocaleInfoLS(GetUserDefaultLCID, LOCALE_FONTSIGNATURE, ls, Len(ls))
    If (rc > 0) Then                                        ' if success
        ls.lsCsbDefault(1) = 0                              ' zero out bits
        
        ' translate charset info from locale fontsignature.
        rc = TranslateCharsetInfo(ls.lsCsbDefault(0), ci, TCI_SRCFONTSIG)
        If rc <> 0 Then GetUserCharset = ci.ciCharset       ' return charset
    End If
End Function

'-----------------------------------------------------------
' Function: IsFontSupported
'
' Validates a font name to make sure it is supported by
' on the current system.
'
' IN/OUT: [sFontName] - name of font to check, will also]
'         be set to the default font name if the provided
'         one is not supported.
'-----------------------------------------------------------
Private Function IsFontSupported(sFontName As String) As Boolean
    Dim oFont As StdFont
    On Error Resume Next
    Set oFont = New StdFont
    oFont.Name = sFontName
    IsFontSupported = (UCase(oFont.Name) = UCase(sFontName))
    sFontName = oFont.Name
End Function

'-----------------------------------------------------------
' SUB: SetMousePtr
'
' Provides a way to set the mouse pointer only when the
' pointer state changes.  For every HOURGLASS call, there
' should be a corresponding DEFAULT call.  Other types of
' mouse pointers are set explicitly.
'
' IN: [intMousePtr] - type of mouse pointer desired
'-----------------------------------------------------------
'
Sub SetMousePtr(intMousePtr As Integer)
    Static intPtrState As Integer

    Select Case intMousePtr
        Case vbHourglass
            intPtrState = intPtrState + 1
        Case gintMOUSE_DEFAULT
            intPtrState = intPtrState - 1
            If intPtrState < 0 Then
                intPtrState = 0
            End If
        Case Else
            Screen.MousePointer = intMousePtr
            Exit Sub
        'End Case
    End Select

    Screen.MousePointer = IIf(intPtrState > 0, vbHourglass, gintMOUSE_DEFAULT)
End Sub

'-----------------------------------------------------------
' FUNCTION: StripTerminator
'
' Returns a string without any zero terminator.  Typically,
' this was a string returned by a Windows API call.
'
' IN: [strString] - String to remove terminator from
'
' Returns: The value of the string passed in minus any
'          terminating zero.
'-----------------------------------------------------------
'
Function StripTerminator(ByVal strString As String) As String
    Dim intZeroPos As Integer

    intZeroPos = InStr(strString, Chr$(0))
    If intZeroPos > 0 Then
        StripTerminator = Left$(strString, intZeroPos - 1)
    Else
        StripTerminator = strString
    End If
End Function

'-----------------------------------------------------------
' FUNCTION: GetFileVersion
'
' Returns the internal file version number for the specified
' file.  This can be different than the 'display' version
' number shown in the File Manager File Properties dialog.
' It is the same number as shown in the VB5 SetupWizard's
' File Details screen.  This is the number used by the
' Windows VerInstallFile API when comparing file versions.
'
' IN: [strFilename] - the file whose version # is desired
'     [fIsRemoteServerSupportFile] - whether or not this file is
'          a remote ActiveX component support file (.VBR)
'          (Enterprise edition only).  If missing, False is assumed.
'
' Returns: The Version number string if found, otherwise
'          vbnullstring
'-----------------------------------------------------------
'
Function GetFileVersion(ByVal strFilename As String, Optional ByVal fIsRemoteServerSupportFile As Boolean = False) As String
    Dim sVerInfo As VERINFO
    Dim strVer As String

    On Error GoTo GFVError

    '
    'Get the file version into a VERINFO struct, and then assemble a version string
    'from the appropriate elements.
    '
    If GetFileVerStruct(strFilename, sVerInfo, fIsRemoteServerSupportFile) = True Then
        strVer = Format$(sVerInfo.FileVerPart1) & gstrDECIMAL & Format$(sVerInfo.FileVerPart2) & gstrDECIMAL
        strVer = strVer & Format$(sVerInfo.FileVerPart3) & gstrDECIMAL & Format$(sVerInfo.FileVerPart4)
        GetFileVersion = strVer
    Else
        GetFileVersion = vbNullString
    End If
    
    Exit Function
    
GFVError:
    GetFileVersion = vbNullString
    Err = 0
End Function

'-----------------------------------------------------------
' FUNCTION: GetFileVerStruct
'
' Gets the file version information into a VERINFO TYPE
' variable
'
' IN: [strFilename] - name of file to get version info for
'     [fIsRemoteServerSupportFile] - whether or not this file is
'          a remote ActiveX component support file (.VBR)
'          (Enterprise edition only).  If missing, False is assumed.
' OUT: [sVerInfo] - VERINFO Type to fill with version info
'
' Returns: True if version info found, False otherwise
'-----------------------------------------------------------
'
Function GetFileVerStruct(ByVal sFile As String, sVer As VERINFO, Optional ByVal fIsRemoteServerSupportFile As Boolean = False) As Boolean
    Dim lVerSize As Long, lTemp As Long, lRet As Long
    Dim bInfo() As Byte
    Dim lpBuffer As Long
    Const sEXE As String * 1 = "\"
    Dim fFoundVer As Boolean
    
    GetFileVerStruct = False
    fFoundVer = False
    
    If fIsRemoteServerSupportFile Then
        GetFileVerStruct = GetRemoteSupportFileVerStruct(sFile, sVer)
        fFoundVer = True
    Else
        '
        'Get the size of the file version info, allocate a buffer for it, and get the
        'version info.  Next, we query the Fixed file info portion, where the internal
        'file version used by the Windows VerInstallFile API is kept.  We then copy
        'the fixed file info into a VERINFO structure.
        '
        lVerSize = GetFileVersionInfoSize(sFile, lTemp)
        ReDim bInfo(lVerSize)
        If lVerSize > 0 Then
            lRet = GetFileVersionInfo(sFile, lTemp, lVerSize, VarPtr(bInfo(0)))
            If lRet <> 0 Then
                lRet = VerQueryValue(VarPtr(bInfo(0)), sEXE & vbNullChar, lpBuffer, lVerSize)
                If lRet <> 0 Then
                    CopyMemory sVer, ByVal lpBuffer, lVerSize
                    fFoundVer = True
                    GetFileVerStruct = True
                End If
            End If
        End If
    End If
    If Not fFoundVer Then
        '
        ' We were unsuccessful in finding the version info from the file.
        ' One possibility is that this is a dependency file.
        '
        If UCase(Extension(sFile)) = gstrEXT_DEP Then
            GetFileVerStruct = GetDepFileVerStruct(sFile, sVer)
        End If
    End If
End Function
'-----------------------------------------------------------
' FUNCTION: GetFileDescription
'
' Gets the file description information.
'
' IN: [strFilename] - name of file to get description of.
'
' Returns: Description (vbNullString if not found)
'-----------------------------------------------------------
'
Function GetFileDescription(ByVal sFile As String) As String
    Dim lVerSize As Long, lTemp As Long, lRet As Long
    Dim bInfo() As Byte
    Dim lpBuffer As Long
    Dim sDesc As String
    Dim sKEY As String
    Const sEXE As String = "\FileDescription"
    
    GetFileDescription = vbNullString
    
    '
    'Get the size of the file version info, allocate a buffer for it, and get the
    'version info.  Next, we query the Fixed file info portion, where the internal
    'file version used by the Windows VerInstallFile API is kept.  We then copy
    'the info into a string.
    '
    lVerSize = GetFileVersionInfoSize(sFile, lTemp)
    ReDim bInfo(lVerSize)
    If lVerSize > 0 Then
        lRet = GetFileVersionInfo(sFile, lTemp, lVerSize, VarPtr(bInfo(0)))
        If lRet <> 0 Then
            sKEY = GetNLSKey(bInfo)
            lRet = VerQueryValue(VarPtr(bInfo(0)), sKEY & sEXE, lpBuffer, lVerSize)
            If lRet <> 0 Then
                sDesc = Space$(lVerSize)
                lstrcpyn sDesc, lpBuffer, lVerSize
                GetFileDescription = sDesc
            End If
        End If
    End If
End Function
Private Function GetNLSKey(byteVerData() As Byte) As String
    Const strTRANSLATION$ = "\VarFileInfo\Translation"
    Const strSTRINGFILEINFO$ = "\StringFileInfo\"
    Const strDEFAULTNLSKEY$ = "040904E4"
    Const LOCALE_IDEFAULTLANGUAGE& = &H9&
    Const LOCALE_IDEFAULTCODEPAGE& = &HB&

    Static strLANGCP As String

    Dim lpBufPtr As Long
    Dim strNLSKey As String
    Dim fGotNLSKey As Integer
    Dim intOffset As Integer
    Dim lVerSize As Long
    Dim ltmp As Long
    Dim lBufLen As Long
    Dim lLCID As Long
    Dim strTmp As String

    On Error GoTo GNLSKCleanup

    If VerQueryValue(VarPtr(byteVerData(0)), strTRANSLATION, lpBufPtr, lVerSize) <> 0 Then ' (Pass byteVerData array via reference to first element)
        If Len(strLANGCP) = 0 Then
            lLCID = GetUserDefaultLCID()
            If lLCID > 0 Then
                strTmp = Space$(8)
    
                GetLocaleInfoA lLCID, LOCALE_IDEFAULTCODEPAGE, strTmp, 8
                strLANGCP = StripTerminator(strTmp)
                While Len(strLANGCP) < 4
                    strLANGCP = gsZERO & strLANGCP
                Wend

                GetLocaleInfoA lLCID, LOCALE_IDEFAULTLANGUAGE, strTmp, 8
                strLANGCP = StripTerminator(strTmp) & strLANGCP
                While Len(strLANGCP) < 8
                    strLANGCP = gsZERO & strLANGCP
                Wend
            End If
        End If

        If VerQueryValue(VarPtr(byteVerData(0)), strLANGCP, ltmp, lBufLen) <> 0 Then
            strNLSKey = strLANGCP
        Else
            For intOffset = 0 To lVerSize - 1 Step 4
                CopyMemory ltmp, ByVal lpBufPtr + intOffset, 4
                strTmp = Hex$(ltmp)
                While Len(strTmp) < 8
                    strTmp = gsZERO & strTmp
                Wend

                strNLSKey = strSTRINGFILEINFO & Right$(strTmp, 4) & Left$(strTmp, 4)

                If VerQueryValue(VarPtr(byteVerData(0)), strNLSKey, ltmp, lBufLen) <> 0 Then
                    fGotNLSKey = True
                    Exit For
                End If
            Next

            If Not fGotNLSKey Then
                strNLSKey = strSTRINGFILEINFO & strDEFAULTNLSKEY
                If VerQueryValue(VarPtr(byteVerData(0)), strNLSKey, ltmp, lBufLen) <> 0 Then
                    fGotNLSKey = True
                End If
            End If
        End If
    End If

GNLSKCleanup:
    If fGotNLSKey Then
        GetNLSKey = strNLSKey
    End If
End Function
'-----------------------------------------------------------
' FUNCTION: GetDepFileVerStruct
'
' Gets the file version information from a dependency
' file (*.dep).  Such files do not have a Windows version
' stamp, but they do have an internal version stamp that
' we can look for.
'
' IN: [strFilename] - name of dep file to get version info for
' OUT: [sVerInfo] - VERINFO Type to fill with version info
'
' Returns: True if version info found, False otherwise
'-----------------------------------------------------------
'
Function GetDepFileVerStruct(ByVal strFilename As String, sVerInfo As VERINFO) As Boolean
    Const strVersionKey = "Version="
    Dim cchVersionKey As Integer
    Dim iFile As Integer

    GetDepFileVerStruct = False
    
    cchVersionKey = Len(strVersionKey)
    sVerInfo.FileVerPart1 = gintNOVERINFO
    
    On Error GoTo Failed
    
    iFile = FreeFil

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久久久蜜臀| 国产91精品精华液一区二区三区| 美女网站一区二区| 一区二区三区精品| 亚洲免费在线播放| 亚洲人成7777| 亚洲女爱视频在线| 亚洲免费观看在线视频| 亚洲免费观看在线观看| 亚洲欧美另类在线| 夜夜亚洲天天久久| 偷拍日韩校园综合在线| 蜜芽一区二区三区| 美女国产一区二区三区| 久久精品国产亚洲a| 国产精品一区二区久激情瑜伽 | 91性感美女视频| 91黄色小视频| 欧美欧美午夜aⅴ在线观看| 欧美久久一二三四区| 91麻豆精品国产91久久久| 精品三级在线看| 国产精品日韩成人| 一区二区三区国产| 亚洲v精品v日韩v欧美v专区| 蜜桃精品视频在线观看| 国产成人精品午夜视频免费| 91麻豆成人久久精品二区三区| 日本高清不卡一区| 日韩一区二区三区av| 亚洲国产精品激情在线观看 | 不卡的av中国片| 在线观看日韩一区| 日韩精品一区二区三区视频 | 国产成人综合网| 91美女视频网站| 在线不卡中文字幕播放| 久久精品一区二区三区不卡牛牛 | 亚洲免费伊人电影| 美女性感视频久久| 成人av影院在线| 欧美日韩国产高清一区二区三区| 精品久久一区二区| 一区二区理论电影在线观看| 日av在线不卡| jvid福利写真一区二区三区| 欧美一区二区三区在线视频| 国产视频在线观看一区二区三区| 一区二区三区欧美| 91丨porny丨蝌蚪视频| 欧美日韩国产一二三| 国产三级一区二区三区| 亚洲国产精品久久久久秋霞影院| 久久超碰97人人做人人爱| 91一区二区三区在线观看| 日韩写真欧美这视频| 亚洲人成网站影音先锋播放| 久久99久久精品| 欧美性猛交一区二区三区精品| 精品国产一区二区三区久久久蜜月| 亚洲色大成网站www久久九九| 久久精品国产99久久6| 欧美性xxxxxx少妇| 中文字幕av不卡| 久久福利资源站| 欧美在线色视频| 国产精品久久久久久亚洲伦| 经典三级在线一区| 制服.丝袜.亚洲.另类.中文| 18成人在线观看| 福利电影一区二区三区| 日韩三级.com| 91亚洲资源网| 亚洲三级小视频| 麻豆精品视频在线观看视频| a4yy欧美一区二区三区| 26uuu国产日韩综合| 水蜜桃久久夜色精品一区的特点 | 久久97超碰色| 91精品国产综合久久久久久| 亚洲激情六月丁香| 懂色中文一区二区在线播放| 91蝌蚪porny| 日韩精品亚洲专区| 亚洲裸体xxx| 国产精品538一区二区在线| 欧美一级日韩免费不卡| 亚洲午夜激情网站| 一本色道**综合亚洲精品蜜桃冫| 国产欧美日韩三区| 国产精品 日产精品 欧美精品| 欧美一区二区精品在线| 午夜精品福利一区二区三区av| 色哟哟亚洲精品| 亚洲精品免费视频| 91久久一区二区| 亚洲欧美一区二区三区久本道91 | 国产一区二区不卡| 欧美一级欧美三级| 美女视频第一区二区三区免费观看网站 | 国产成人免费在线视频| 精品国产3级a| 狠狠色丁香久久婷婷综合丁香| 67194成人在线观看| 日韩国产欧美在线观看| 欧美一卡2卡三卡4卡5免费| 无吗不卡中文字幕| 7777精品伊人久久久大香线蕉超级流畅 | 波多野结衣亚洲| 欧美国产一区视频在线观看| 国产成人av电影在线观看| 国产亚洲精品免费| k8久久久一区二区三区 | 激情国产一区二区| 精品福利av导航| 国产激情一区二区三区四区| 国产日韩欧美在线一区| 成人视屏免费看| 中文字幕亚洲不卡| 91国偷自产一区二区使用方法| 亚洲精品国产视频| 欧美精品国产精品| 蜜臀av一区二区| 国产三级一区二区三区| 97se亚洲国产综合自在线不卡 | 国产成人在线看| 国产精品蜜臀在线观看| 在线视频综合导航| 日韩av一区二区三区| 日韩欧美国产成人一区二区| 国产永久精品大片wwwapp| 中文字幕成人网| 91国偷自产一区二区使用方法| 午夜欧美电影在线观看| 精品国内片67194| 成人黄色免费短视频| 亚洲国产综合视频在线观看| 日韩欧美电影一区| 99久久国产综合精品色伊| 亚洲午夜免费视频| 亚洲精品在线观看网站| aaa亚洲精品| 日本欧美一区二区在线观看| 久久精品在这里| 欧美日韩免费观看一区二区三区| 日韩在线a电影| 欧美极品xxx| 911精品国产一区二区在线| 国内精品国产成人| 一区二区三区视频在线看| 精品少妇一区二区三区在线播放 | 久久亚洲私人国产精品va媚药| zzijzzij亚洲日本少妇熟睡| 日本大胆欧美人术艺术动态| 欧美激情综合五月色丁香小说| 欧美日韩免费不卡视频一区二区三区| 九色综合国产一区二区三区| **性色生活片久久毛片| 日韩免费在线观看| 欧美性感一区二区三区| 国产精品一区二区三区四区| 亚洲高清免费在线| 亚洲国产精品成人综合色在线婷婷 | 午夜不卡av免费| 综合在线观看色| 日韩免费视频一区| 91高清在线观看| 成人精品国产福利| 九一九一国产精品| 日韩高清一级片| 亚洲精品久久久蜜桃| 欧美激情一区二区三区全黄| 91精品国产综合久久蜜臀 | 日本一区二区在线不卡| 欧美精品xxxxbbbb| 色系网站成人免费| 成人av一区二区三区| 狠狠色综合日日| 日韩av午夜在线观看| 亚洲一区二区三区中文字幕在线| 国产清纯美女被跳蛋高潮一区二区久久w| 国产美女精品一区二区三区| 香蕉久久一区二区不卡无毒影院| 亚洲男人天堂一区| 国产精品剧情在线亚洲| 久久亚洲综合色一区二区三区| 欧美一区二区高清| 欧美精品免费视频| 欧美伊人精品成人久久综合97| 99re热这里只有精品免费视频| 国产福利一区二区| 国产尤物一区二区在线| 久久99精品久久久久| 青青草国产精品97视觉盛宴| 五月激情综合色| 日韩在线a电影| 日本美女视频一区二区| 日韩高清不卡一区二区三区| 日韩不卡免费视频| 视频一区视频二区中文字幕|