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

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

?? module1.bas

?? 小型醫院管理
?? BAS
字號:
Attribute VB_Name = "Module1"
Option Explicit
Public lifh
Public huifh
Public yddhxg
Public db As Connection
Public hui
Dim i As Integer

'"""""""""""""""""""""""""""
Public lihui

Public Enum KeyRoot
  [HKEY_CLASSES_ROOT] = &H80000000  ' ShellExecutestores OLE class information and file associations
  [HKEY_CURRENT_CONFIG] = &H80000005 'stores computer configuration information
  [HKEY_CURRENT_USER] = &H80000001 'stores program information for the current user.
'  [HKEY_LOCAL_MACHINE] = &H80000002 'stores program information for all users
  [HKEY_USERS] = &H80000003 'has all the information for any user (not just the one provided by HKEY_CURRENT_USER)
End Enum

Type FILETIME
    lLowDateTime    As Long
    lHighDateTime   As Long
End Type
Public Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long

Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long
Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
Declare Function RegDeleteValue Lib "advapi32.dll" Alias "RegDeleteValueA" (ByVal hKey As Long, ByVal lpValueName As String) As Long
Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal hKey As Long, ByVal lpSubKey As String) As Long
Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, ByVal lpData As String, lpcbData As Long) As Long
Declare Function RegQueryValueExA Lib "advapi32.dll" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, ByRef lpData As Long, lpcbData As Long) As Long
Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, ByVal lpData As String, ByVal cbData As Long) As Long
Declare Function RegSetValueExA Lib "advapi32.dll" (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, ByRef lpData As Long, ByVal cbData As Long) As Long
Declare Function RegSetValueExB Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, ByRef lpData As Byte, ByVal cbData As Long) As Long
Const ERROR_SUCCESS = 0&
Const ERROR_BADDB = 1009&
Const ERROR_BADKEY = 1010&
Const ERROR_CANTOPEN = 1011&
Const ERROR_CANTREAD = 1012&
Const ERROR_CANTWRITE = 1013&
Const ERROR_OUTOFMEMORY = 14&
Const ERROR_INVALID_PARAMETER = 87&
Const ERROR_ACCESS_DENIED = 5&
Const ERROR_NO_MORE_ITEMS = 259&
Const ERROR_MORE_DATA = 234&
Const REG_NONE = 0&
Const REG_SZ = 1&
Const REG_EXPAND_SZ = 2&
Const REG_BINARY = 3&
Const REG_DWORD = 4&
Const REG_DWORD_LITTLE_ENDIAN = 4&
Const REG_DWORD_BIG_ENDIAN = 5&
Const REG_LINK = 6&
Const REG_MULTI_SZ = 7&
Const REG_RESOURCE_LIST = 8&
Const REG_FULL_RESOURCE_DESCRIPTOR = 9&
Const REG_RESOURCE_REQUIREMENTS_LIST = 10&

Const KEY_QUERY_VALUE = &H1&
Const KEY_SET_VALUE = &H2&
Const KEY_CREATE_SUB_KEY = &H4&
Const KEY_ENUMERATE_SUB_KEYS = &H8&
Const KEY_NOTIFY = &H10&
Const KEY_CREATE_LINK = &H20&
Const READ_CONTROL = &H20000
Const WRITE_DAC = &H40000
Const WRITE_OWNER = &H80000
Const SYNCHRONIZE = &H100000
Const STANDARD_RIGHTS_REQUIRED = &HF0000
Const STANDARD_RIGHTS_READ = READ_CONTROL
Const STANDARD_RIGHTS_WRITE = READ_CONTROL
Const STANDARD_RIGHTS_EXECUTE = READ_CONTROL
Const KEY_READ = STANDARD_RIGHTS_READ Or KEY_QUERY_VALUE Or KEY_ENUMERATE_SUB_KEYS Or KEY_NOTIFY
Const KEY_WRITE = STANDARD_RIGHTS_WRITE Or KEY_SET_VALUE Or KEY_CREATE_SUB_KEY
Const KEY_EXECUTE = KEY_READ

Dim hKey As Long, MainKeyHandle As Long
Dim rtn As Long, lBuffer As Long, sBuffer As String
Dim lBufferSize As Long
Dim lDataSize As Long
Dim ByteArray() As Byte

Public 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

Const DisplayErrorMsg = False

Declare Function ChooseColor Lib "comdlg32.dll" Alias "ChooseColorA" (pChoosecolor As ChooseColor) As Long

Type ChooseColor
     lStructSize As Long
     hwndOwner As Long
     hInstance As Long
     rgbResult As Long
     lpCustColors As String
     Flags As Long
     lCustData As Long
     lpfnHook As Long
     lpTemplateName As String
End Type

Function SetDWORDValue(SubKey As String, Entry As String, Value As Long)

Call ParseKey(SubKey, MainKeyHandle)

If MainKeyHandle Then
   rtn = RegOpenKeyEx(MainKeyHandle, SubKey, 0, KEY_WRITE, hKey) 'open the key
   If rtn = ERROR_SUCCESS Then 'if the key was open successfully then
      rtn = RegSetValueExA(hKey, Entry, 0, REG_DWORD, Value, 4) 'write the value
      If Not rtn = ERROR_SUCCESS Then   'if there was an error writting the value
         If DisplayErrorMsg = True Then 'if the user want errors displayed
                   'display the error
         End If
      End If
      rtn = RegCloseKey(hKey) 'close the key
   Else 'if there was an error opening the key
      If DisplayErrorMsg = True Then 'if the user want errors displayed
        
      End If
   End If
End If

End Function
Function GetDWORDValue(SubKey As String, Entry As String)

Call ParseKey(SubKey, MainKeyHandle)

If MainKeyHandle Then
   rtn = RegOpenKeyEx(MainKeyHandle, SubKey, 0, KEY_READ, hKey) 'open the key
   If rtn = ERROR_SUCCESS Then 'if the key could be opened then
      rtn = RegQueryValueExA(hKey, Entry, 0, REG_DWORD, lBuffer, 4) 'get the value from the registry
      If rtn = ERROR_SUCCESS Then 'if the value could be retreived then
         rtn = RegCloseKey(hKey)  'close the key
         GetDWORDValue = lBuffer  'return the value
      Else                        'otherwise, if the value couldnt be retreived
         GetDWORDValue = "Error"  'return Error to the user
         If DisplayErrorMsg = True Then 'if the user wants errors displayed
                 'tell the user what was wrong
         End If
      End If
   Else 'otherwise, if the key couldnt be opened
      GetDWORDValue = "Error"        'return Error to the user
      If DisplayErrorMsg = True Then 'if the user wants errors displayed
                 'tell the user what was wrong
      End If
   End If
End If

End Function

Function SetBinaryValue(SubKey As String, Entry As String, Value As String)

Call ParseKey(SubKey, MainKeyHandle)

If MainKeyHandle Then
   rtn = RegOpenKeyEx(MainKeyHandle, SubKey, 0, KEY_WRITE, hKey) 'open the key
   If rtn = ERROR_SUCCESS Then 'if the key was open successfully then
      lDataSize = Len(Value)
      ReDim ByteArray(lDataSize)
      For i = 1 To lDataSize
      ByteArray(i) = Asc(Mid$(Value, i, 1))
      Next
      rtn = RegSetValueExB(hKey, Entry, 0, REG_BINARY, ByteArray(1), lDataSize) 'write the value
      If Not rtn = ERROR_SUCCESS Then   'if the was an error writting the value
         If DisplayErrorMsg = True Then 'if the user want errors displayed
                 'display the error
         End If
      End If
      rtn = RegCloseKey(hKey) 'close the key
   Else 'if there was an error opening the key
      If DisplayErrorMsg = True Then 'if the user wants errors displayed
        
      End If
   End If
End If

End Function


Function GetBinaryValue(SubKey As String, Entry As String)

Call ParseKey(SubKey, MainKeyHandle)

If MainKeyHandle Then
   rtn = RegOpenKeyEx(MainKeyHandle, SubKey, 0, KEY_READ, hKey) 'open the key
   If rtn = ERROR_SUCCESS Then 'if the key could be opened
      lBufferSize = 1
      rtn = RegQueryValueEx(hKey, Entry, 0, REG_BINARY, 0, lBufferSize) 'get the value from the registry
      sBuffer = Space(lBufferSize)
      rtn = RegQueryValueEx(hKey, Entry, 0, REG_BINARY, sBuffer, lBufferSize) 'get the value from the registry
      If rtn = ERROR_SUCCESS Then 'if the value could be retreived then
         rtn = RegCloseKey(hKey)  'close the key
         GetBinaryValue = sBuffer 'return the value to the user
      Else                        'otherwise, if the value couldnt be retreived
         GetBinaryValue = "Error" 'return Error to the user
         If DisplayErrorMsg = True Then 'if the user wants to errors displayed
          
         End If
      End If
   Else 'otherwise, if the key couldnt be opened
      GetBinaryValue = "Error" 'return Error to the user
      If DisplayErrorMsg = True Then 'if the user wants to errors displayed
        
      End If
   End If
End If

End Function
Function DeleteKey(KeyName As String)

Call ParseKey(KeyName, MainKeyHandle)

If MainKeyHandle Then
   rtn = RegOpenKeyEx(MainKeyHandle, KeyName, 0, KEY_WRITE, hKey) 'open the key
   If rtn = ERROR_SUCCESS Then 'if the key could be opened then
      rtn = RegDeleteKey(hKey, KeyName) 'delete the key
      rtn = RegCloseKey(hKey)  'close the key
   End If
End If

End Function

Function GetMainKeyHandle(MainKeyName As String) As Long

Const HKEY_CLASSES_ROOT = &H80000000
Const HKEY_CURRENT_USER = &H80000001
Const HKEY_LOCAL_MACHINE = &H80000002
Const HKEY_USERS = &H80000003
Const HKEY_PERFORMANCE_DATA = &H80000004
Const HKEY_CURRENT_CONFIG = &H80000005
Const HKEY_DYN_DATA = &H80000006
   
Select Case MainKeyName
       Case "HKEY_CLASSES_ROOT"
            GetMainKeyHandle = HKEY_CLASSES_ROOT
       Case "HKEY_CURRENT_USER"
            GetMainKeyHandle = HKEY_CURRENT_USER
       Case "HKEY_LOCAL_MACHINE"
            GetMainKeyHandle = HKEY_LOCAL_MACHINE
       Case "HKEY_USERS"
            GetMainKeyHandle = HKEY_USERS
       Case "HKEY_PERFORMANCE_DATA"
            GetMainKeyHandle = HKEY_PERFORMANCE_DATA
       Case "HKEY_CURRENT_CONFIG"
            GetMainKeyHandle = HKEY_CURRENT_CONFIG
       Case "HKEY_DYN_DATA"
            GetMainKeyHandle = HKEY_DYN_DATA
End Select

End Function





Function GetStringValue(SubKey As String, Entry As String)

Call ParseKey(SubKey, MainKeyHandle)

If MainKeyHandle Then
   rtn = RegOpenKeyEx(MainKeyHandle, SubKey, 0, KEY_READ, hKey) 'open the key
   If rtn = ERROR_SUCCESS Then 'if the key could be opened then
      sBuffer = Space(255)     'make a buffer
      lBufferSize = Len(sBuffer)
      rtn = RegQueryValueEx(hKey, Entry, 0, REG_SZ, sBuffer, lBufferSize) 'get the value from the registry
      If rtn = ERROR_SUCCESS Then 'if the value could be retreived then
         rtn = RegCloseKey(hKey)  'close the key
         sBuffer = Trim(sBuffer)
         GetStringValue = Left(sBuffer, Len(sBuffer) - 1) 'return the value to the user
      Else                        'otherwise, if the value couldnt be retreived
         GetStringValue = "Error" 'return Error to the userCreateKey
         If DisplayErrorMsg = True Then 'if the user wants errors displayed then
           
         
         End If
      End If
   Else
      GetStringValue = "Error"
      If DisplayErrorMsg = True Then '
        
      End If
   End If
End If

End Function

Private Sub ParseKey(KeyName As String, Keyhandle As Long)
    
rtn = InStr(KeyName, "\") '

If Left(KeyName, 5) <> "HKEY_" Or Right(KeyName, 1) = "\" Then
   MsgBox "Incorrect Format:" + Chr(10) + Chr(10) + KeyName
   Exit Sub
ElseIf rtn = 0 Then
   Keyhandle = GetMainKeyHandle(KeyName)
   KeyName = ""
Else
   Keyhandle = GetMainKeyHandle(Left(KeyName, rtn - 1))
   KeyName = Right(KeyName, Len(KeyName) - rtn)
End If

End Sub
Function CreateKey(SubKey As String)

Call ParseKey(SubKey, MainKeyHandle)

If MainKeyHandle Then
   rtn = RegCreateKey(MainKeyHandle, SubKey, hKey)
   If rtn = ERROR_SUCCESS Then
      rtn = RegCloseKey(hKey)
   End If
End If

End Function
Function SetStringValue(SubKey As String, Entry As String, Value As String)

Call ParseKey(SubKey, MainKeyHandle)

If MainKeyHandle Then
   rtn = RegOpenKeyEx(MainKeyHandle, SubKey, 0, KEY_WRITE, hKey)
   If rtn = ERROR_SUCCESS Then
      rtn = RegSetValueEx(hKey, Entry, 0, REG_SZ, ByVal Value, Len(Value))
      If Not rtn = ERROR_SUCCESS Then
         If DisplayErrorMsg = True Then
           
         End If
      End If
      rtn = RegCloseKey(hKey)
   Else
      If DisplayErrorMsg = True Then
         
      End If
   End If
End If

End Function
'""""""""""""""""""""""""""
Sub Main()
If App.PrevInstance Then
      MsgBox ("程序正在運行,不能再次裝載!"), vbExclamation
      End
  Exit Sub
End If


If GetStringValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MinorVersion", "database") = "Error" Or GetStringValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MinorVersion", "database") = "" Then
kf_frm_server.Show 1
Exit Sub
End If
hui = GetStringValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MinorVersion", "database")
Set db = New ADODB.Connection
    db.CursorLocation = adUseClient
    db.Open , hui
           
            

            Load v_denglu
            v_denglu.Show 1
       
         

LogoOK:
            Exit Sub
aa:
LogoError:
          Beep
          MsgBox "網絡故障或沒有與網絡進行連接,請檢查計算機的網絡連接或與網絡管理員聯系。", vbOKOnly + vbQuestion, "信息管理系統"

          kf_frm_server.Show 1
 
End Sub

Public Sub pass(KeyAscii As Integer)
If KeyAscii = 13 Then
SendKeys "{Tab}"
KeyAscii = 0
End If
End Sub

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品最新网址| 国产成人精品一区二区三区四区 | 视频精品一区二区| 中文字幕精品综合| 国产欧美久久久精品影院| 久久影院午夜片一区| 精品国产91久久久久久久妲己| 3751色影院一区二区三区| 欧美日韩另类一区| 欧美一区二区在线观看| 日韩一级视频免费观看在线| 51精品视频一区二区三区| 欧美精品一卡两卡| 欧美zozo另类异族| 久久久久久久久久久久电影| 国产亚洲精品精华液| 国产精品丝袜久久久久久app| 国产精品不卡在线观看| 日本一区二区久久| 一区二区三区影院| 喷水一区二区三区| 粉嫩蜜臀av国产精品网站| 91一区在线观看| 欧美人与禽zozo性伦| 日韩三级视频中文字幕| 日本一区二区三区高清不卡 | 色综合夜色一区| 欧美日韩一区二区在线视频| caoporn国产精品| 在线免费观看一区| 欧美美女一区二区| 99这里都是精品| 色天天综合色天天久久| 91黄色免费版| 久久香蕉国产线看观看99| 中文字幕人成不卡一区| 婷婷六月综合亚洲| 大胆亚洲人体视频| 欧美精品一卡两卡| 亚洲色图视频网| 国产在线精品视频| 欧美日韩精品是欧美日韩精品| 精品美女在线观看| 午夜精品福利一区二区三区蜜桃| 极品少妇xxxx偷拍精品少妇| 色婷婷综合久久久久中文一区二区 | 懂色av一区二区三区免费观看| 99精品黄色片免费大全| 日韩精品一区二| 一区二区三区中文在线| 国产激情一区二区三区四区| 欧美视频你懂的| 日韩一区在线免费观看| 极品少妇xxxx精品少妇| 欧美日本一区二区三区| 亚洲欧美综合色| 国产大片一区二区| 日韩女优av电影在线观看| 亚洲一级不卡视频| av电影在线观看不卡 | 国产电影一区二区三区| 6080日韩午夜伦伦午夜伦| 一区二区三区四区视频精品免费 | 亚洲综合一二三区| 不卡一卡二卡三乱码免费网站| 欧美精品一区二区三区很污很色的| 亚洲免费资源在线播放| 成人午夜碰碰视频| 国产精品欧美综合在线| 久久成人综合网| 5月丁香婷婷综合| 五月婷婷欧美视频| 欧美日韩一区国产| 日韩高清电影一区| 在线看日韩精品电影| 中文字幕亚洲欧美在线不卡| 国产乱子伦一区二区三区国色天香| 678五月天丁香亚洲综合网| 亚洲图片欧美一区| 欧美性xxxxx极品少妇| 国产精品嫩草影院com| 国产精品亚洲午夜一区二区三区 | 欧美激情一区三区| 不卡一卡二卡三乱码免费网站| 久久久亚洲午夜电影| 蜜乳av一区二区三区| 欧美一区二区视频网站| 免费成人在线视频观看| 精品视频色一区| 日本91福利区| 久久综合九色综合欧美亚洲| 加勒比av一区二区| 国产精品你懂的| www.亚洲国产| 亚洲人吸女人奶水| 欧美网站一区二区| 日本在线不卡视频一二三区| 日韩视频一区二区三区在线播放| 久久99国产乱子伦精品免费| 久久久影院官网| 色老头久久综合| 奇米777欧美一区二区| 国产精品乱码一区二区三区软件| 99re热视频精品| 日韩高清在线电影| 中文字幕第一区| 在线免费视频一区二区| 久久99热狠狠色一区二区| 久久婷婷综合激情| 北条麻妃一区二区三区| 亚洲综合视频网| 日韩精品一区二区三区老鸭窝 | 手机精品视频在线观看| 国产亚洲精品精华液| 欧美视频中文字幕| 国产福利一区二区三区视频| 亚洲午夜视频在线| 国产三级一区二区三区| 欧美日韩三级在线| 99久久久精品| 国模少妇一区二区三区| 亚洲午夜激情网页| 中文字幕亚洲成人| 91麻豆精品国产91久久久使用方法 | 国产一区二区看久久| 亚洲另类春色校园小说| 久久你懂得1024| 91精品免费观看| 欧美性高清videossexo| 成人av午夜影院| 国产麻豆精品视频| 蜜乳av一区二区三区| 午夜电影一区二区三区| 亚洲少妇中出一区| 国产精品久久综合| 国产三级三级三级精品8ⅰ区| 制服丝袜亚洲精品中文字幕| 在线视频你懂得一区二区三区| 成人免费看视频| 国产乱码精品一区二区三| 久久精品国产精品亚洲综合| 亚洲国产精品久久久男人的天堂 | 欧美一区二区三区视频在线观看 | 国产精品亚洲第一| 国产精品一二二区| 国产伦精品一区二区三区免费迷 | 欧美激情综合在线| 国产欧美中文在线| 久久久久久久久久看片| 久久新电视剧免费观看| 久久午夜色播影院免费高清| 欧美电影免费提供在线观看| 欧美一区二区国产| 欧美一激情一区二区三区| 91精品国产91综合久久蜜臀| 在线不卡中文字幕| 欧美一区二区在线免费播放| 欧美一区2区视频在线观看| 欧美一区二区黄色| 精品国产一区a| 国产亚洲女人久久久久毛片| 久久久精品tv| 亚洲三级免费观看| 夜夜亚洲天天久久| 日韩中文字幕麻豆| 麻豆精品在线播放| 国产91精品一区二区麻豆网站| 国产成人av电影| 91黄视频在线观看| 欧美一级黄色录像| 久久久久久**毛片大全| 中文字幕在线观看一区| 一区二区三区在线观看视频| 午夜精品123| 国产米奇在线777精品观看| 成人性生交大合| 欧美日韩一区三区四区| 久久夜色精品一区| 亚洲免费色视频| 热久久久久久久| 成人黄色软件下载| 欧美性感一区二区三区| 精品乱人伦小说| 亚洲免费av在线| 蜜桃在线一区二区三区| 波多野结衣91| 精品噜噜噜噜久久久久久久久试看 | 国产精品久久久久久亚洲毛片| 一区二区三区在线播放| 蓝色福利精品导航| 91在线视频免费观看| 91精品欧美久久久久久动漫| 国产精品三级电影| 日韩中文字幕av电影| 99re视频精品| 久久久美女毛片| 三级亚洲高清视频| 色综合久久久久久久久| 久久久久久久久久久久久夜| 亚洲国产视频在线|