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

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

?? basmain.bas

?? a Tiger Hash algorithmn code
?? BAS
?? 第 1 頁 / 共 2 頁
字號:
Attribute VB_Name = "basMain"
' ***************************************************************************
' Module:        basMain
'
' Description:   This is a generic module I use to start and stop an
'                application
'
' ===========================================================================
'    DATE      NAME / DESCRIPTION
' -----------  --------------------------------------------------------------
' 29-APR-2001  Kenneth Ives  kenaso@tx.rr.com
' ***************************************************************************
Option Explicit

' ***************************************************************************
' Global constants
' ***************************************************************************
  Public Const AUTHOR_EMAIL          As String = "kenaso@tx.rr.com"
  Public Const PGM_NAME              As String = "Tiger2"
  Public Const MAX_SIZE              As Long = 260
  Public Const DUMMY_NUMBER          As Long = vbObjectError + 513

' ***************************************************************************
' Module Constants
' ***************************************************************************
  Private Const INVALID_HANDLE_VALUE As Long = -1
  Private Const ERROR_ALREADY_EXISTS As Long = 183
  Private Const MODULE_NAME          As String = "basMain"

' ***************************************************************************
' API Declarations
' ***************************************************************************
  ' The GetCurrentProcess function returns a pseudohandle for the current
  ' process. A pseudohandle is a special constant that is interpreted as
  ' the current process handle. The calling process can use this handle to
  ' specify its own process whenever a process handle is required. The
  ' pseudohandle need not be closed when it is no longer needed.
  Private Declare Function GetCurrentProcess Lib "kernel32" () As Long
  
  ' The GetExitCodeProcess function retrieves the termination status of the
  ' specified process. If the function succeeds, the return value is nonzero.
  Private Declare Function GetExitCodeProcess Lib "kernel32" _
          (ByVal hProcess As Long, lpExitCode As Long) As Long
  
  ' The ExitProcess function ends a process and all its threads.
  ' ex:     ExitProcess GetExitCodeProcess(GetCurrentProcess, 0)
  Private Declare Sub ExitProcess Lib "kernel32" (ByVal uExitCode As Long)
  
  ' The CreateMutex function creates a named or unnamed mutex object.  Used
  ' to determine if an application is active.
  Private Declare Function CreateMutex Lib "kernel32" Alias "CreateMutexA" _
          (lpMutexAttributes As Any, ByVal bInitialOwner As Long, _
          ByVal lpName As String) As Long
  
  ' This function releases ownership of the specified mutex object.
  ' Finished with the search.
  Private Declare Function ReleaseMutex Lib "kernel32" _
          (ByVal hMutex As Long) As Long

  ' The ShellExecute function opens or prints a specified file.  The file
  ' can be an executable file or a document file.
  Private Declare Function ShellExecute Lib "shell32.dll" _
          Alias "ShellExecuteA" (ByVal hwnd As Long, _
          ByVal lpOperation As String, ByVal lpFile As String, _
          ByVal lpParameters As String, ByVal lpDirectory As String, _
          ByVal nShowCmd As Long) As Long

  ' Always close a handle if not being used
  Private Declare Function CloseHandle Lib "kernel32" _
          (ByVal hObject As Long) As Long
  
  ' Retrieves a set of FAT file system attributes for a specified file
  ' or directory. Used here to determine if a path or file exist.
  Private Declare Function GetFileAttributes Lib "kernel32" _
          Alias "GetFileAttributesA" (ByVal lpSpec As String) As Long

  ' The GetWindowsDirectory function retrieves the path of the Windows
  ' directory. The Windows directory contains such files as Windows-based
  ' applications, initialization files, and Help files.
  Private Declare Function GetWindowsDirectory Lib "kernel32" _
          Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, _
          ByVal nSize As Long) As Long

  ' The GetSystemDirectory function retrieves the path of the Windows
  ' system directory. The system directory contains such files as Windows
  ' libraries, drivers, and font files.
  Private Declare Function GetSystemDirectory Lib "kernel32" _
          Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, _
          ByVal nSize As Long) As Long
  
  ' Retrieves the length of the specified wide string (not including the
  ' terminating null character).
  Private Declare Function lstrlenW Lib "kernel32" _
          (ByVal lpString As Long) As Long

' ***************************************************************************
' Global Variables
' ***************************************************************************
  Public gblnStopProcessing As Boolean
  Public gstrVersion        As String
  Public glngPasses         As Long     ' number of iterations to process data
  
' ***************************************************************************
' Module Variables
' ***************************************************************************
  Private mblnIDE_Environment As Boolean    ' Flag for debug mode
          
' ***************************************************************************
' Routine:       Main
'
' Description:   This is a generic routine to start an application
'
' ===========================================================================
'    DATE      NAME / DESCRIPTION
' -----------  --------------------------------------------------------------
' 29-APR-2001  Kenneth Ives  kenaso@tx.rr.com
'              Wrote routine
' ***************************************************************************
Sub Main()

    On Error GoTo Main_Error

    ChDrive App.Path
    ChDir App.Path
    
    ' See if there is another instance of this program
    ' running.  The parameter being passed is the name
    ' of this executable without the EXE extension.
    If AlreadyRunning(App.EXEName) Then
        GoTo Main_CleanUp
    End If
    
    InitComctl32                 ' Activate manifest file
    
    gstrVersion = PGM_NAME & " v" & App.Major & "." & App.Minor & "." & App.Revision
    gblnStopProcessing = False   ' preset global stop flag
    
    Load frmMain                 ' Load the main form

Main_CleanUp:
    On Error GoTo 0
    Exit Sub

Main_Error:
    ErrorMsg MODULE_NAME, "Main", Err.Description
    Resume Main_CleanUp
    
End Sub

' ***************************************************************************
' Routine:       TerminateProgram
'
' Description:   This routine will perform the shutdown process for this
'                application.  If there are any global object/class (not
'                forms) they will be listed below and set to NOTHING so as
'                to free them from memory.  The last task is to unload
'                all form objects.  Then terminate this application.
'
' ===========================================================================
'    DATE      NAME / DESCRIPTION
' -----------  --------------------------------------------------------------
' 29-APR-2001  Kenneth Ives  kenaso@tx.rr.com
'              Wrote routine
' ***************************************************************************
Public Sub TerminateProgram()

    ' Set all global objects to nothing, if they were used in this application
    ' EXAMPLE:    Set gobjFSO = Nothing
    
    CloseAllFiles   ' Close all files opened by this application
    UnloadAllForms  ' Unload any forms from memory

    ' While in the IDE, do not call the ELSE statement (ExitProcess).
    ' If you do, the associated processes include the VB developement
    ' environment.  ExitProcess will close the IDE immediately and not
    ' save any changes that were not previously saved.
    If mblnIDE_Environment Then
        End  ' Force this application to terminate while in the VB IDE
    Else
        ' The ExitProcess function ends a process and all its threads.
        ExitProcess GetExitCodeProcess(GetCurrentProcess, 0)
    End If

End Sub
 
' ***************************************************************************
' Routine:       CloseAllFiles
'
' Description:   Closes any files that were opened within this application.
'                The FreeFile() function returns an integer representing the
'                next file handle opened by this appication.
'
' ===========================================================================
'    DATE      NAME / DESCRIPTION
' -----------  --------------------------------------------------------------
' 29-APR-2001  Kenneth Ives  kenaso@tx.rr.com
'              Wrote routine
' ***************************************************************************
Public Function CloseAllFiles() As Boolean

    While FreeFile > 1
        Close #FreeFile - 1
    Wend
    
End Function

' ***************************************************************************
' Routine:       UnloadAllForms
'
' Description:   Unload all active forms associated with this application.
'
' ===========================================================================
'    DATE      NAME / DESCRIPTION
' -----------  --------------------------------------------------------------
' 29-APR-2001  Kenneth Ives  kenaso@tx.rr.com
'              Wrote routine
' ***************************************************************************
Private Sub UnloadAllForms()

    Dim frm As Form
    Dim ctl As Control

    ' Loop thru all the active forms
    ' associated with this application
    For Each frm In Forms
        
        frm.Hide            ' hide the form
        
        ' free all controls from memory
        For Each ctl In frm.Controls
            Set ctl = Nothing
        Next
        
        Unload frm          ' deactivate the form object
        Set frm = Nothing   ' free form object from memory
                            ' (prevents memory fragmentation)
    Next

End Sub

' ***************************************************************************
' Routine:       RemoveTrailingNulls
'
' Description:   Receives a data string and looks for the first null.  If
'                found, the string is truncated at that point and returned.
'
' Parameters:    strData - Input string to be inspected
'
' Returns:       Data string without the trailing nulls
'
' ===========================================================================
'    DATE      NAME / eMAIL
'              DESCRIPTION
' -----------  --------------------------------------------------------------
' Unknown      Randy Birch http://vbnet.mvps.org/index.html
'              Wrote routine routine
' ***************************************************************************
Public Function RemoveTrailingNulls(ByVal strData As String) As String

    RemoveTrailingNulls = Left$(strData, lstrlenW(StrPtr(strData)))

End Function

' ***************************************************************************
' Routine:       FindRequiredFile
'
' Description:   Test to see if a required file is in the applications,
'                windows or windows system folder.
'
' Parameters:    strFilename - name of the file without path information
'                strFullPath - Optional - If found then the fully qualified
'                     path and filename are returned
'
' Returns:       TRUE  - Found the required file
'                FALSE - File could not be found
'
' ===========================================================================
'    DATE      NAME / eMAIL
'              DESCRIPTION
' -----------  --------------------------------------------------------------
' 04-FEB-2003  Kenneth Ives  kenaso@tx.rr.com
'              Original
' 15-Nov-2006  Kenneth Ives  kenaso@tx.rr.com
'              Modified the search criteria to use PATH environment variable
' 10-Sep-2007  Kenneth Ives  kenaso@tx.rr.com
'              Changed search criteria to inspect 3 specific folders.
'              Found examples where some applications changed the PATH
'              environment variable.
' ***************************************************************************
Public Function FindRequiredFile(ByVal strFileName As String, _
                        Optional ByRef strFullPath As String = "") As Boolean

    Dim strPath    As String  ' Fully qualified search path
    Dim strAppPath As String  ' Description needed in error message
    Dim strWinPath As String  ' Description needed in error message
    Dim strSysPath As String  ' Description needed in error message
    Dim blnFoundIt As Boolean

    On Error GoTo FindRequiredFile_Error

    strFullPath = ""    ' Empty return variable
    blnFoundIt = False  ' Preset flag
    
    ' See if file is in application folder
    strAppPath = QualifyPath(App.Path)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色八戒一区二区三区| 国内精品写真在线观看| 一本久久精品一区二区| 亚洲人成网站精品片在线观看| 国产高清不卡二三区| 欧美极品aⅴ影院| 9i看片成人免费高清| 樱花影视一区二区| 精品污污网站免费看| 日本欧美大码aⅴ在线播放| 日韩欧美亚洲一区二区| 国模一区二区三区白浆| 国产欧美日韩一区二区三区在线观看| 成人美女视频在线看| 亚洲精品菠萝久久久久久久| 欧美三级日韩三级国产三级| 美女视频黄免费的久久| 国产日韩精品视频一区| 91激情在线视频| 免费不卡在线观看| 欧美国产激情二区三区| 欧美系列在线观看| 精品一区二区免费在线观看| 国产精品网友自拍| 欧美精品1区2区3区| 国产一区999| 亚洲精品乱码久久久久久黑人 | 色婷婷久久一区二区三区麻豆| 午夜精品一区二区三区三上悠亚| 久久先锋影音av| 在线免费精品视频| 精品系列免费在线观看| 亚洲欧美在线观看| 欧美一级黄色片| 91丨porny丨首页| 精品在线一区二区三区| 亚洲人成人一区二区在线观看 | 91精品婷婷国产综合久久| 国产成人亚洲综合a∨婷婷| 亚洲bt欧美bt精品777| 久久久午夜电影| 欧美日免费三级在线| 成人不卡免费av| 麻豆国产精品一区二区三区 | 亚洲高清视频在线| 国产精品丝袜91| 日韩欧美一级二级三级久久久| 99re热这里只有精品视频| 麻豆91免费观看| 亚洲一卡二卡三卡四卡无卡久久 | 国产成人免费视频精品含羞草妖精| 亚洲一区二区视频| 国产精品国产精品国产专区不蜜 | 精品91自产拍在线观看一区| 色天天综合色天天久久| 国产二区国产一区在线观看| 欧美aaa在线| 天天综合色天天| 一区二区三区欧美久久| 国产精品网站在线| 国产日韩精品一区| 精品成人一区二区三区四区| 538prom精品视频线放| 91黄色免费版| 99视频有精品| 成人网在线播放| 国产麻豆精品一区二区| 激情深爱一区二区| 韩国av一区二区三区| 日韩激情中文字幕| 香蕉久久夜色精品国产使用方法| 亚洲男人天堂一区| 亚洲色图另类专区| 国产精品短视频| 亚洲图片另类小说| 亚洲精品五月天| 亚洲人成网站精品片在线观看| 国产精品久久久久久久蜜臀| 国产精品视频一二三区 | 欧美一区二区三区视频免费播放| 欧美日韩电影在线播放| 欧美少妇一区二区| 欧美色精品天天在线观看视频| 欧美午夜一区二区三区免费大片| 欧美日韩综合色| 91精品国产一区二区| 欧美大肚乱孕交hd孕妇| 久久精子c满五个校花| 亚洲国产高清在线观看视频| 欧美激情一区二区三区| 中文字幕一区二区三区精华液| 亚洲三级在线观看| 亚洲午夜久久久久中文字幕久| 亚洲一区在线观看免费观看电影高清 | 亚洲一区二区三区国产| 日韩在线a电影| 激情六月婷婷久久| 波多野结衣中文字幕一区二区三区| 成人高清在线视频| 91视视频在线观看入口直接观看www | 亚洲精品ww久久久久久p站| 亚洲国产色一区| 久久99精品国产麻豆婷婷| 国产成人免费视频一区| 一本大道久久a久久综合| 欧美日韩亚州综合| 精品国产1区二区| 日韩美女久久久| 日韩中文字幕1| 高清不卡一区二区| 色久综合一二码| 日韩午夜精品视频| 国产精品久久网站| 日韩精品成人一区二区在线| 国产精品18久久久久久vr| 99久久er热在这里只有精品15 | 成人开心网精品视频| 欧美视频一区二区| 久久精品男人的天堂| 伊人性伊人情综合网| 精品一区二区免费在线观看| 91香蕉视频mp4| 欧美成人在线直播| 亚洲美腿欧美偷拍| 国产一区二区三区四区在线观看| 一本大道综合伊人精品热热| 日韩精品专区在线| 一区二区三区四区乱视频| 激情欧美一区二区三区在线观看| 91亚洲国产成人精品一区二三| 日韩三级视频在线看| 亚洲精品成a人| 大陆成人av片| 欧美一级欧美一级在线播放| 中文字幕在线不卡视频| 久久国产精品72免费观看| 在线观看免费一区| 中文字幕+乱码+中文字幕一区| 免费观看30秒视频久久| 色女孩综合影院| 国产精品青草综合久久久久99| 奇米色一区二区三区四区| 色婷婷综合久久久中文一区二区| 国产女人水真多18毛片18精品视频| 天堂成人免费av电影一区| 色综合视频在线观看| 日本一区免费视频| 国产一区二三区好的| 91精品国产品国语在线不卡| 亚洲专区一二三| 成人av在线播放网址| 久久久久成人黄色影片| 六月婷婷色综合| 日韩一区二区视频| 视频一区二区国产| 欧美三级电影精品| 亚洲一区二区三区自拍| 91麻豆自制传媒国产之光| 国产精品理论在线观看| 高清不卡在线观看| 国产欧美日韩三区| 成人免费视频一区| 国产农村妇女毛片精品久久麻豆 | 欧美日韩国产一级片| 亚洲韩国精品一区| 色猫猫国产区一区二在线视频| 一区二区中文视频| 99精品国产91久久久久久| 日韩一区中文字幕| 色哦色哦哦色天天综合| 亚洲激情图片小说视频| 色综合视频在线观看| 一区二区三区在线不卡| 欧美在线三级电影| 亚洲成人免费影院| 91麻豆精品国产91久久久更新时间| 午夜精品成人在线视频| 日韩午夜激情免费电影| 激情欧美一区二区三区在线观看| 久久天堂av综合合色蜜桃网| 国产高清不卡一区| 亚洲三级理论片| 欧洲亚洲国产日韩| 视频一区在线视频| 欧美v日韩v国产v| 国产成人精品一区二区三区四区 | 久久99日本精品| 欧美国产国产综合| 91国产视频在线观看| 亚洲国产成人tv| 精品久久久三级丝袜| 欧洲精品在线观看| 日韩精品乱码免费| 国产婷婷色一区二区三区在线| 成人动漫精品一区二区| 亚洲午夜国产一区99re久久| 日韩免费一区二区| 国产99久久久国产精品潘金网站| 亚洲欧美国产77777| 7777精品伊人久久久大香线蕉完整版|