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

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

?? clsregistry.cls

?? 銀行、電信
?? CLS
字號:
VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "clsRegistry"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit

'APIs to open/close the registry
Private Declare Function RegOpenKey Lib "advapi32.dll" _
        Alias "RegOpenKeyA" (ByVal hKey As Long, _
        ByVal lpSubKey As String, phkResult As Long) As Long
Private 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
Private Declare Function RegConnectRegistry Lib "advapi32.dll" _
        Alias "RegConnectRegistryA" _
        (ByVal lpMachineName As String, _
        ByVal hKey As Long, _
        phkResult As Long) As Long
Private Declare Function RegCloseKey Lib "advapi32.dll" _
        (ByVal hKey As Long) As Long
        
'APIs to get/set values in the registry
Private Declare Function RegQueryValueEx Lib "advapi32.dll" _
        Alias "RegQueryValueExA" (ByVal hKey As Long, _
        ByVal lpValueName As String, ByVal lpReserved As Long, _
        lpType As Long, lpData As Any, _
        lpcbData As Long) As Long
Private Declare Function RegQueryValueExString Lib "advapi32.dll" _
        Alias "RegQueryValueExA" (ByVal hKey As Long, _
        ByVal lpValueName As String, ByVal lpReserved As Long, _
        lpType As Long, lpData As String, _
        lpcbData As Long) As Long
Private Declare Function RegSetValueEx Lib "advapi32.dll" _
        Alias "RegSetValueExA" _
        (ByVal hKey As Long, ByVal lpValueName As String, _
        ByVal Reserved As Long, ByVal dwType As Long, _
        lpData As Long, ByVal cbData As Long) As Long
Private Declare Function RegSetValueExString 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
Private Declare Function RegDeleteValue Lib "advapi32.dll" _
        Alias "RegDeleteValueA" _
        (ByVal hKey As Long, _
        ByVal lpValueName As String) As Long

'Enumerators
Private Declare Function RegEnumKey Lib "advapi32.dll" _
        Alias "RegEnumKeyA" _
        (ByVal hKey As Long, ByVal dwIndex As Long, _
        ByVal lpName As String, _
        ByVal cbName As Long) As Long
Private Declare Function RegEnumKeyEx Lib "advapi32.dll" _
        Alias "RegEnumKeyExA" _
        (ByVal hKey As Long, ByVal dwIndex As Long, _
        ByVal lpName As String, lpcbName As Long, _
        ByVal lpReserved As Long, ByVal lpClass As String, _
        lpcbClass As Long, _
        lpftLastWriteTime As FILETIME) As Long
Private Declare Function RegEnumValue Lib "advapi32.dll" _
        Alias "RegEnumValueA" _
        (ByVal hKey As Long, _
        ByVal dwIndex As Long, _
        ByVal lpValueName As String, _
        lpcbValueName As Long, _
        ByVal lpReserved As Long, _
        lpType As Long, _
        lpData As Byte, _
        lpcbData As Long) As Long
        
'APIs to create/remove keys
Private Declare Function RegCreateKeyEx Lib "advapi32.dll" _
        Alias "RegCreateKeyExA" _
        (ByVal hKey As Long, _
        ByVal lpSubKey As String, _
        ByVal Reserved As Long, _
        ByVal lpClass As String, _
        ByVal dwOptions As Long, _
        ByVal samDesired As Long, _
        lpSecurityAttributes As SECURITY_ATTRIBUTES, _
        phkResult As Long, _
        lpdwDisposition As Long) As Long
Private Declare Function RegDeleteKey Lib "advapi32.dll" _
        Alias "RegDeleteKeyA" _
        (ByVal hKey As Long, ByVal lpSubKey As String) As Long

'Error codes
Private Const ERROR_SUCCESS = 0

'Registry constants
Public Enum REG_TYPE
    REG_BINARY = 3
    REG_CREATED_NEW_KEY = &H1
    REG_DWORD = 4
    REG_DWORD_BIG_ENDIAN = 5
    REG_DWORD_LITTLE_ENDIAN = 4
    REG_EXPAND_SZ = 2
    REG_FULL_RESOURCE_DESCRIPTOR = 9
    REG_LINK = 6
    REG_MULTI_SZ = 7
    REG_NONE = 0
    REG_NOTIFY_CHANGE_ATTRIBUTES = &H2
    REG_NOTIFY_CHANGE_LAST_SET = &H4
    REG_NOTIFY_CHANGE_NAME = &H1
    REG_NOTIFY_CHANGE_SECURITY = &H8
    REG_OPENED_EXISTING_KEY = &H2
    REG_OPTION_BACKUP_RESTORE = 4
    REG_OPTION_CREATE_LINK = 2
    REG_OPTION_NON_VOLATILE = 0
    REG_OPTION_RESERVED = 0
    REG_OPTION_VOLATILE = 1
    REG_REFRESH_HIVE = &H2
    REG_RESOURCE_LIST = 8
    REG_RESOURCE_REQUIREMENTS_LIST = 10
    REG_SZ = 1
    REG_WHOLE_HIVE_VOLATILE = &H1
    REG_LEGAL_CHANGE_FILTER = (REG_NOTIFY_CHANGE_NAME Or REG_NOTIFY_CHANGE_ATTRIBUTES Or REG_NOTIFY_CHANGE_LAST_SET Or REG_NOTIFY_CHANGE_SECURITY)
    REG_LEGAL_OPTION = (REG_OPTION_RESERVED Or REG_OPTION_NON_VOLATILE Or REG_OPTION_VOLATILE Or REG_OPTION_CREATE_LINK Or REG_OPTION_BACKUP_RESTORE)
End Enum
'Access constants
Private Const READ_CONTROL = &H20000
Private Const SYNCHRONIZE = &H100000
Private Const STANDARD_RIGHTS_ALL = &H1F0000
Private Const STANDARD_RIGHTS_EXECUTE = (READ_CONTROL)
Private Const STANDARD_RIGHTS_READ = (READ_CONTROL)
Private Const STANDARD_RIGHTS_REQUIRED = &HF0000
Private Const STANDARD_RIGHTS_WRITE = (READ_CONTROL)
Private Const KEY_CREATE_LINK = &H20
Private Const KEY_CREATE_SUB_KEY = &H4
Private Const KEY_ENUMERATE_SUB_KEYS = &H8
Private Const KEY_EVENT = &H1
Private Const KEY_NOTIFY = &H10
Private Const KEY_QUERY_VALUE = &H1
Private Const KEY_SET_VALUE = &H2
Private Const KEY_READ = ((STANDARD_RIGHTS_READ Or KEY_QUERY_VALUE Or KEY_ENUMERATE_SUB_KEYS Or KEY_NOTIFY) And (Not SYNCHRONIZE))
Private Const KEY_EXECUTE = ((KEY_READ) And (Not SYNCHRONIZE))
Private Const KEY_WRITE = ((STANDARD_RIGHTS_WRITE Or KEY_SET_VALUE Or KEY_CREATE_SUB_KEY) And (Not SYNCHRONIZE))
Private Const KEY_ALL_ACCESS = ((STANDARD_RIGHTS_ALL Or KEY_QUERY_VALUE Or KEY_SET_VALUE Or KEY_CREATE_SUB_KEY Or KEY_ENUMERATE_SUB_KEYS Or KEY_NOTIFY Or KEY_CREATE_LINK) And (Not SYNCHRONIZE))

'FILETIME structure for use with RegEnumKeyEx
Private Type FILETIME
    dwLowDateTime As Long
    dwHighDateTime As Long
End Type

Private Type SECURITY_ATTRIBUTES
    nLength As Long
    lpSecurityDescriptor As Long
    bInheritHandle As Long
End Type

'This enum makes it easier then remembering constants
'It will help make the class function more like what
'the user is used to in RegEdit and RegEdt32.
Public Enum HKEYs
    eHKEY_CLASSES_ROOT = &H80000000
    eHKEY_CURRENT_USER = &H80000001
    eHKEY_LOCAL_MACHINE = &H80000002
    eHKEY_USERS = &H80000003
    eHKEY_PERFORMANCE_DATA = &H80000004
    eHKEY_CURRENT_CONFIG = &H80000005
    eHKEY_DYN_DATA = &H80000006
End Enum

Public Function CreateKey(PredefinedKey As HKEYs, KeyName As String) As Boolean
    Dim hNewKey As Long
    Dim rc As Long
    Dim se As SECURITY_ATTRIBUTES
    On Error GoTo handler
    
    'Make sure there is no backslash preceding the branch
    If Left$(KeyName, 1) = "\" Then
        KeyName = Right$(KeyName, Len(KeyName) - 1)
    End If

    'Create the branch
    se.lpSecurityDescriptor = 0
    se.bInheritHandle = False
    rc = RegCreateKeyEx(PredefinedKey, _
            KeyName, _
            0&, _
            vbNullString, _
            REG_OPTION_NON_VOLATILE, _
            KEY_ALL_ACCESS, _
            se, _
            hNewKey, _
            rc)
    
    If rc = ERROR_SUCCESS Then
    
        'Close the registry
        rc = RegCloseKey(hNewKey)
    
        'Return the result code
        CreateKey = True
    Else
        CreateKey = False
    End If
    
    'Bypass the error handler
    Exit Function

handler:
    CreateKey = False
End Function


Public Function DeleteKey(PredefinedKey As HKEYs, KeyName As String) As Boolean
    Dim rc As Long
    
    On Error GoTo handler
    
    'Make sure there is no backslash preceding the branch
    If Left$(KeyName, 1) = "\" Then
        KeyName = Right$(KeyName, Len(KeyName) - 1)
    End If

    'Call the API
    rc = RegDeleteKey(PredefinedKey, KeyName)
    If rc = ERROR_SUCCESS Then
        'Return result code
        DeleteKey = True
    Else
        DeleteKey = False
    End If
    
    'Bypass the error handler
    Exit Function

handler:
    DeleteKey = False
End Function

Public Function ListSubKey(PredefinedKey As HKEYs, KeyName As String, Index As Long) As String
    Dim rc As Long
    Dim hKey As Long
    Dim dwIndex As Long
    Dim lpName As String
    Dim lpcbName As Long
    Dim lpReserved As Long
    Dim lpftLastWriteTime As FILETIME
    Dim i As Integer
    
    On Error GoTo handler
    
    'Make sure there is no backslash preceding the branch
    If Left$(KeyName, 1) = "\" Then
        KeyName = Right$(KeyName, Len(KeyName) - 1)
    End If
    
    'Attempt to open the registry
    rc = RegOpenKeyEx(PredefinedKey, KeyName, _
            0, KEY_ALL_ACCESS, hKey)
            
    If rc = ERROR_SUCCESS Then
        'Allocate buffers for lpName
        lpcbName = 255: lpName = String$(lpcbName, Chr(0))
                    
        'Get the subkey
        rc = RegEnumKeyEx(hKey, Index, lpName, _
                lpcbName, lpReserved, vbNullString, _
                0, lpftLastWriteTime)
                
        If rc = ERROR_SUCCESS Then
            'Return the result
            ListSubKey = Left$(lpName, lpcbName)
        Else
            ListSubKey = ""
        End If
            
        'Close the registry
        RegCloseKey hKey
    End If
    
    'Bypass the error handler
    Exit Function

handler:
    ListSubKey = ""
End Function

Public Function SetValue(PredefinedKey As HKEYs, KeyName As String, ValueName As String, _
        Value As Variant, Optional ValueType As REG_TYPE = REG_SZ) As Boolean
    Dim rc As Long
    Dim hKey As Long
    Dim lpType As Long
    Dim lpcbData As Long
    Dim lpData As String
    
    On Error GoTo handler
    
    'Make sure there is no backslash preceding the branch
    If Left$(KeyName, 1) = "\" Then
        KeyName = Right$(KeyName, Len(KeyName) - 1)
    End If
    
    'Open the registry
    rc = RegOpenKeyEx(PredefinedKey, _
            KeyName, _
            0, _
            KEY_ALL_ACCESS, _
            hKey)

    If rc = ERROR_SUCCESS Then
        'Create a buffer so we can retrieve the data type of
        'the key. We'll need this to determine which API
        'we should call.
        lpcbData = 255
        lpData = String(lpcbData, Chr(0))
        
        'Get the value type first.
        'It will be returned via lpType argument
        rc = RegQueryValueEx(hKey, _
            ValueName, _
            0, lpType, _
            ByVal lpData, _
            lpcbData)
        
        If rc = ERROR_SUCCESS Then
            Select Case lpType
                Case REG_SZ
                    'Use a string data type
                    rc = RegSetValueExString(hKey, _
                        ValueName, _
                        0, _
                        REG_SZ, _
                        CStr(Value), _
                        Len(Value) + 1)
                Case REG_DWORD
                    'Use a DWORD data type
                    rc = RegSetValueEx(hKey, _
                        ValueName, _
                        0, _
                        REG_DWORD, _
                        CLng(Value), _
                        lpcbData)
            End Select
        Else
            rc = RegSetValueExString(hKey, _
                ValueName, _
                0, _
                ValueType, _
                CStr(Value), _
                Len(Value) + 1)
        End If
        
        'Close the registry
        RegCloseKey hKey
    End If
    
    'Return the result code
    SetValue = True
    
    'Bypass the error handler
    Exit Function

handler:
    SetValue = False
End Function

Public Function GetValue(PredefinedKey As HKEYs, ByVal KeyName As String, ByVal ValueName As String) As Variant
    Dim rc As Long
    Dim hKey As Long
    Dim lpData As String
    Dim lpDataDWORD As Long
    Dim lpcbData As Long
    Dim lpType As Long
    
    On Error GoTo handler
    
    'Make sure there is no backslash preceding the branch
    If Left$(KeyName, 1) = "\" Then
        KeyName = Right$(KeyName, Len(KeyName) - 1)
    End If
    
    'Attempt to open the registry
    rc = RegOpenKeyEx(PredefinedKey, KeyName, _
            0, KEY_ALL_ACCESS, hKey)
            
    If rc = ERROR_SUCCESS Then
        'Create a buffer so we can retrieve the data type of
        'the key. We'll need this to determine which API
        'we should call.
        lpcbData = 255
        lpData = String(lpcbData, Chr(0))
        
        'Get the value type first.
        'It will be returned via lpType argument
        rc = RegQueryValueEx(hKey, _
            ValueName, _
            0, lpType, _
            ByVal lpData, _
            lpcbData)
            
        If rc = ERROR_SUCCESS Then
            'Then read the value using the
            'appropriate data type...
            Select Case lpType
                Case REG_SZ
                    rc = RegQueryValueExString(hKey, _
                        ValueName, _
                        0, lpType, _
                        ByVal lpData, _
                        lpcbData)
                    
                    'Return the value
                    If rc = 0 Then
                        GetValue = Left$(lpData, lpcbData - 1)
                    Else
                        GetValue = ""
                    End If
                Case REG_DWORD
                    rc = RegQueryValueEx(hKey, _
                        ValueName, _
                        0, lpType, _
                        lpDataDWORD, _
                        lpcbData)
                    
                    'Return the value
                    If rc = 0 Then
                        GetValue = CLng(lpDataDWORD)
                    Else
                        GetValue = 0
                    End If
            End Select
        End If
        
        'Close the registry
        RegCloseKey hKey
    End If
    
    'Bypass the error handler
    Exit Function

handler:
    'Return a null value
    GetValue = Null
End Function




?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av在线播放成人| 国内精品伊人久久久久影院对白| 不卡的av电影| 亚洲女与黑人做爰| 在线观看视频91| 午夜视频在线观看一区| 日韩一卡二卡三卡| 国产精品一区在线观看你懂的| 久久久久成人黄色影片| 福利一区二区在线| 亚洲另类春色校园小说| 欧美三级资源在线| 老汉av免费一区二区三区| 国产亚洲成aⅴ人片在线观看| 成人免费毛片app| 亚洲人快播电影网| 欧美日本乱大交xxxxx| 蜜桃av噜噜一区| 久久亚洲精精品中文字幕早川悠里 | 欧美福利一区二区| 国内精品伊人久久久久av影院| 国产精品久久一级| 欧美疯狂性受xxxxx喷水图片| 国产中文一区二区三区| 亚洲精选免费视频| 精品奇米国产一区二区三区| 91污片在线观看| 免费的国产精品| 综合在线观看色| 日韩你懂的在线播放| 91麻豆福利精品推荐| 久久精品国产亚洲5555| 亚洲你懂的在线视频| 精品久久久久一区二区国产| 日本精品视频一区二区三区| 国产伦精一区二区三区| 亚洲国产欧美在线| 国产三级三级三级精品8ⅰ区| 欧美视频一区二| 成人动漫一区二区三区| 免费久久精品视频| 亚洲精品国产无天堂网2021| 久久久久久日产精品| 欧美日韩精品欧美日韩精品| 成人动漫精品一区二区| 奇米精品一区二区三区在线观看一| 亚洲欧洲另类国产综合| 精品国产乱码久久久久久夜甘婷婷 | 亚洲欧美在线视频| 色视频欧美一区二区三区| 国产一区二区三区在线观看免费| 亚洲成人免费在线观看| 中文字幕欧美一| 中国av一区二区三区| 日韩精品一区二区三区视频 | 美脚の诱脚舐め脚责91| 亚洲成a人片综合在线| 国产精品乱码人人做人人爱| 精品国产乱码久久久久久蜜臀| 欧美日韩亚洲综合一区 | 欧美挠脚心视频网站| 97成人超碰视| 高清久久久久久| 国产成人av影院| 国模套图日韩精品一区二区| 喷水一区二区三区| 秋霞午夜av一区二区三区| 亚洲成av人片在www色猫咪| 亚洲免费看黄网站| 亚洲美女免费视频| 亚洲日本护士毛茸茸| 亚洲欧美一区二区久久| 亚洲精品国产视频| 亚洲美女屁股眼交3| 亚洲黄一区二区三区| 亚洲一二三级电影| 亚洲一区电影777| 亚洲成人在线网站| 午夜精品一区在线观看| 视频一区二区三区在线| 婷婷综合另类小说色区| 日本在线观看不卡视频| 日韩高清中文字幕一区| 久久草av在线| 国产精品中文字幕一区二区三区| 国产v日产∨综合v精品视频| www.日韩大片| 欧美色视频在线观看| 91精品在线免费观看| 日韩色在线观看| 精品国产乱码久久久久久免费 | 91视频com| 欧美日韩成人综合在线一区二区| 欧美色图片你懂的| 欧美一区二区三区视频在线| 精品久久一二三区| 亚洲欧洲美洲综合色网| 亚洲第一二三四区| 国产一区二区成人久久免费影院| 成人免费va视频| 欧美在线观看一区| 欧美大肚乱孕交hd孕妇| 国产欧美精品日韩区二区麻豆天美| 亚洲欧美一区二区不卡| 日本亚洲三级在线| 成人a区在线观看| 欧美三级视频在线播放| 精品对白一区国产伦| 亚洲欧洲色图综合| 日韩电影免费在线观看网站| 国产91丝袜在线播放| 色老综合老女人久久久| 7777女厕盗摄久久久| 国产欧美中文在线| 性久久久久久久久久久久| 国产精品一区一区三区| 在线观看国产91| 国产日本欧美一区二区| 一区二区在线观看视频在线观看| 日本中文字幕一区二区有限公司| 不卡的看片网站| 欧美日韩亚洲综合| 国产精品视频一二三区| 蜜桃视频一区二区| 粉嫩aⅴ一区二区三区四区 | 免费看精品久久片| 成人免费高清在线| 777色狠狠一区二区三区| 亚洲人成网站在线| 国产精品资源在线| 69堂精品视频| 亚洲精品水蜜桃| 国产精品综合二区| 日韩视频在线观看一区二区| 一二三四社区欧美黄| 丁香桃色午夜亚洲一区二区三区| 91精品免费在线观看| 亚洲视频一二三区| 国产一区二区三区四区五区美女| 欧美区一区二区三区| 一个色综合av| eeuss鲁片一区二区三区在线看| 日韩久久免费av| 亚洲高清免费在线| 不卡视频在线看| 国产精品妹子av| 韩国成人在线视频| 日韩女优制服丝袜电影| 日本女优在线视频一区二区| av一区二区三区在线| 国产拍揄自揄精品视频麻豆| 麻豆精品视频在线观看| 日韩一区二区在线免费观看| 一区二区三区在线播| 色94色欧美sute亚洲线路一久| 国产精品女同一区二区三区| 国产一区二区三区四区在线观看| 日韩欧美亚洲国产精品字幕久久久 | 国产成人av电影在线| xfplay精品久久| 国产一区二区美女诱惑| 精品国产露脸精彩对白| 久久国产乱子精品免费女| 91精品国产综合久久蜜臀| 一卡二卡三卡日韩欧美| 91美女片黄在线| 玉米视频成人免费看| 欧美亚洲日本一区| 午夜视频一区二区| 91精品午夜视频| 久久狠狠亚洲综合| 欧美成人在线直播| 狠狠色狠狠色综合系列| 久久久亚洲国产美女国产盗摄| 国产一区日韩二区欧美三区| 中文字幕欧美日本乱码一线二线| 成人高清av在线| 亚洲男人天堂av网| 欧美中文字幕一区二区三区| 亚洲一区二区三区影院| 欧美一区二区免费观在线| 精品一区二区三区欧美| 国产午夜一区二区三区| 国产在线国偷精品免费看| 精品国产欧美一区二区| 国产成人精品影视| 亚洲男女一区二区三区| 欧美日韩久久久久久| 麻豆91免费观看| 日本一区二区不卡视频| 色婷婷综合视频在线观看| 午夜影院在线观看欧美| 欧美成人一区二区三区在线观看| 国产91色综合久久免费分享| 亚洲自拍与偷拍| 欧美sm极限捆绑bd| 成人av动漫网站| 天堂成人国产精品一区| 欧美国产视频在线| 欧美肥妇bbw|