亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
成人毛片老司机大片| 色女孩综合影院| 亚洲精品一卡二卡| 欧美一级二级三级乱码| 大桥未久av一区二区三区中文| 亚洲成精国产精品女| 国产欧美日韩在线| 欧美一区午夜视频在线观看| av毛片久久久久**hd| 狠狠色狠狠色综合系列| 亚洲一区二区免费视频| 亚洲色欲色欲www| 精品卡一卡二卡三卡四在线| 欧美日韩精品一区视频| 91麻豆精品在线观看| 国产一区二三区| 日韩av一区二区在线影视| 亚洲三级在线免费| 欧美极品xxx| 久久久亚洲综合| 精品国产污污免费网站入口| 欧美欧美午夜aⅴ在线观看| 色悠久久久久综合欧美99| 高清beeg欧美| 国产成人免费9x9x人网站视频| 老司机午夜精品99久久| 日韩高清电影一区| 午夜久久久久久久久久一区二区| 亚洲特级片在线| 中文字幕在线观看一区二区| 亚洲国产精品传媒在线观看| 久久久久久久久久美女| 精品久久久久久久久久久院品网 | 777午夜精品视频在线播放| 91猫先生在线| 91黄色小视频| 91福利在线导航| 日本福利一区二区| 色激情天天射综合网| 91福利视频网站| 欧美日韩在线播放三区四区| 欧美视频日韩视频| 欧美日韩精品欧美日韩精品一 | 国产精品美女久久久久久久久| 欧美精品一区二区三区久久久| 日韩小视频在线观看专区| 欧美一区二区三区视频在线观看| 6080yy午夜一二三区久久| 欧美日韩黄色一区二区| 日韩午夜激情av| 2022国产精品视频| 中文久久乱码一区二区| 中文字幕一区二| 一区二区日韩av| 日本免费新一区视频| 狠狠色综合色综合网络| 成人av在线一区二区三区| 色综合夜色一区| 欧美日韩国产另类不卡| 精品国产乱码久久久久久久| 久久久久综合网| 中文字幕日本不卡| 亚洲成人一区二区| 精品一区二区三区久久| 成人av电影在线网| 欧美在线不卡一区| 欧美成人高清电影在线| 国产精品无遮挡| 亚洲一区二区三区免费视频| 久久国产尿小便嘘嘘尿| 99在线精品观看| 欧美丰满一区二区免费视频| 久久综合狠狠综合久久激情| 自拍偷拍国产精品| 日本成人中文字幕| 成熟亚洲日本毛茸茸凸凹| 在线看日本不卡| www欧美成人18+| 一区二区三区国产精品| 久久成人麻豆午夜电影| 91日韩一区二区三区| 欧美一区国产二区| 亚洲欧洲国产专区| 免费高清在线一区| 97久久人人超碰| 欧美va天堂va视频va在线| 亚洲人亚洲人成电影网站色| 奇米色777欧美一区二区| 9久草视频在线视频精品| 欧美大片顶级少妇| 亚洲一区二区三区视频在线| 岛国精品在线播放| 欧美一级欧美三级在线观看| 中文字幕日韩精品一区| 国模少妇一区二区三区| 欧美视频中文字幕| 国产无人区一区二区三区| 午夜天堂影视香蕉久久| av在线不卡电影| 精品久久国产字幕高潮| 亚洲午夜久久久久中文字幕久| 国产一区二区三区av电影 | www.欧美.com| 精品国产伦理网| 亚洲大片精品永久免费| 成人精品视频一区二区三区尤物| 91精品国产综合久久精品图片| 中文字幕制服丝袜成人av| 精品一区二区三区免费毛片爱| 欧美性大战xxxxx久久久| 亚洲视频在线一区观看| 国产成人av自拍| 精品久久久影院| 美女视频网站黄色亚洲| 91精品婷婷国产综合久久性色| 亚洲激情欧美激情| 99久久er热在这里只有精品15| 国产日韩视频一区二区三区| 激情文学综合网| 欧美一卡二卡三卡| 视频一区中文字幕国产| 欧美三级视频在线| 亚洲一区二区欧美激情| 色成年激情久久综合| 中文字幕一区二区视频| 成人av影院在线| 国产精品毛片大码女人| 成人丝袜18视频在线观看| 国产日韩欧美精品综合| 国产麻豆视频一区| 26uuu国产日韩综合| 国产精品一区二区久久不卡| 精品国产乱码久久久久久久久| 久久精品国产在热久久| 日韩欧美成人激情| 久久福利视频一区二区| 欧美白人最猛性xxxxx69交| 国内外成人在线| 久久久五月婷婷| 国产成人aaaa| 亚洲天堂福利av| 欧美三级电影网站| 午夜视频在线观看一区| 欧美一区日本一区韩国一区| 麻豆91在线看| www久久精品| 不卡的av在线播放| 一区二区三区在线高清| 在线亚洲一区二区| 日韩av不卡在线观看| 精品久久一区二区| 成人综合在线视频| 一区二区免费在线播放| 91麻豆精品国产91久久久资源速度| 石原莉奈一区二区三区在线观看| 9191久久久久久久久久久| 久久99九九99精品| 国产女同性恋一区二区| 一本一道久久a久久精品综合蜜臀| 亚洲愉拍自拍另类高清精品| 欧美精品免费视频| 国产在线播放一区| 国产精品成人一区二区三区夜夜夜 | 一区二区三区精品在线观看| 欧美日韩一卡二卡三卡| 精品亚洲aⅴ乱码一区二区三区| 精品国产乱码久久久久久免费| 成人影视亚洲图片在线| 亚洲第一狼人社区| 精品福利视频一区二区三区| 成人avav在线| 午夜成人在线视频| 久久久精品日韩欧美| 在线观看一区日韩| 久久精品国产一区二区三| 国产精品久久久久久久久果冻传媒| 国产日韩欧美一区二区三区乱码 | 日日夜夜免费精品| 久久嫩草精品久久久精品| 99国产精品一区| 日本不卡视频在线| 亚洲人成伊人成综合网小说| 91麻豆精品国产91久久久使用方法 | 亚洲自拍与偷拍| 久久久久高清精品| 欧美精品丝袜久久久中文字幕| 国内精品伊人久久久久av一坑| 亚洲另类色综合网站| 欧美va亚洲va| 欧美偷拍一区二区| 成人美女视频在线观看| 久久97超碰色| 亚洲午夜一区二区| 国产欧美日韩视频在线观看| 欧美日韩一区二区在线观看| 成人黄色国产精品网站大全在线免费观看 | 美女一区二区三区在线观看| 一区二区三区鲁丝不卡| 国产精品色眯眯| 日韩一二三四区|