关于OD 要如何保存新的EIP模块入口点才生效

关于OD 要如何保存新的EIP模块入口点才生效,第1张

破解的一般流程

1、有壳者自然得先脱壳

2、试注册看看有何提示,让我们抓抓小尾巴

3、若有提示,用OD动态调试器或者是W32静态调试器查找错误提示

4、来到错误提示处分析代码找关键CALL、关键跳!

5、修改代码

6、复制保存!

如果没有提示,我们可以使用很多断点来完成这些 *** 作

现今软件的保护方式有

1、序列号保护方式(注册码=f(机器码/序列号))

2、警告(NAG)窗口

3、时间限制/次数限制。。

4、菜单功能限制

5、Key File保护

6、CD-Check

7、只运行一个实例

一些软件通过把注册码保存在.ini文件注册表、.dat文件等等方式进行注册验证

常见断点设置(后面带"*" 的为常用的)

字符串

bp GetDlgItemTextA(W) ****

bp GetDlgItemInt

bp GetWindowTextA(W) ****

bp GetWindowWord

bmsg XXXX wm_gettext

对话框

bp MessageBeep

bp MessageBoxA(W) ****

bp MessageBoxExA(W)

bp DialogBoxParamA(W)

bp GreateWindowExA(W)

bp ShowWindow

bp UpdateWindow

bmsg XXXX wm_command

对于VB的程序用bp MessageBoxA是无法断下来的,bp rtcMsgBox

注册表相关

bp RegCreateKeyA(W)

bp RegDeleteKeyA(W)

bp RegQueryValueA(W)

bp RegCloseKey

bp RegOpenKeyA(W) ****

时间相关

bp GetLocalTime

bp GetFileTime

bp GetSystemtime

CD-ROM或磁盘相关

bp GetFileAttributesA(W)

bp GetFileSize

bp GetDriveType

bp GetLastError

bp ReadFile

bpio -h (CD-ROM端口地址) R

软件狗

bpio -h 278R

bpio -h 378R

INI初始化文件相关

bp GetPrivateProfileStringA ****

bp GetPrivateProfileInt

bp WritePrivateProfileString

bp WritePrivateProfileInt

文件访问相关

bp ReadFile

bp WriteFile

bp CreateFileA ****

bp SetFilePointer

bp GetSystemDirectory

VB程序专用断点:

bp __vbaStrCmp 比较字符串是否相等

bp __vbaStrComp 比较字符串是否相等

bp __vbaVarTstNe 比较变量是否不相等

bp __vbaVarTstEq 比较变量是否相等

bp __vbaStrCopy 复制字符串

bp __vbaStrMove 移动字符串

bp MultiByteToWideChar ANSI字符串转换成Unicode字符串

bp WideCharToMultiByte Unicode字符串转换成ANSI字符串

bpx msvbvm60!rtcMsgBox

bpx msvbvm60!__vbaStrCmp

bpx msvbvm60!__vbaStrComp

bpx msvbvm60!__vbaStrCompVar

bpx msvbvm60!__vbaStrTextCmp

bpx msvbvm60!__vbaFileOpen

bpx msvbvm60!__vbaInputFile

bpx msvbvm60!__vbaFileSeek

bpx msvbvm60!__vbaWriteFile

bpx msvbvm60!__vbaFileClose

bpx msvbvm60!rtcFileAttributes

bpx msvbvm60!rtcFileDateTime

bpx msvbvm60!rtcFileLen

bpx msvbvm60!rtcFileLength

bpx msvbvm60!__vbaVarInt

bpx msvbvm60!__vbaVarCmpGe

bpx msvbvm60!__vbaVarCmpGt

bpx msvbvm60!__vbaVarCmpLe

bpx msvbvm60!__vbaVarCmpLt

bpx msvbvm60!__vbaVarCmpNe

bpx msvbvm60!__vbaVarTextCmpEq

bpx msvbvm60!__vbaVarTextCmpGe

bpx msvbvm60!__vbaVarTextCmpGt

bpx msvbvm60!__vbaVarTextCmpLe

bpx msvbvm60!__vbaVarTextCmpLt

bpx msvbvm60!__vbaVarTextCmpNe

bpx msvbvm60!__vbaVarTextTstEq

bpx msvbvm60!__vbaVarTextTstGe

bpx msvbvm60!__vbaVarTextTstGt

bpx msvbvm60!__vbaVarTextTstLe

bpx msvbvm60!__vbaVarTextTstLt

bpx msvbvm60!__vbaVarTextTstNe

bpx msvbvm60!__vbaVarTstEq

bpx msvbvm60!__vbaVarTstGe

bpx msvbvm60!__vbaVarTstGt

bpx msvbvm60!__vbaVarTstLe

bpx msvbvm60!__vbaVarTstLt

bpx msvbvm60!__vbaVarTstNe

注意:VB程序仍然可以使用普通API函数,只要函数“最终”CALL了这个函数

上面的断点对应VB6程序,如果是VB5程序则将msvbvm60改成msvbvm50即可

另外还有一类软件通过网络验证、重启验证来判断程序是否注册

当然前者一般应用于外挂程序上较多,一般是改网络验证为本地验证达到欺骗远程网络主机的目的达到通过验证!

后者也是很常见的,他一般把用户输入的注册码直接或者是通过加密运算后得到的数值保存到文件、注册表中,然后提示用户重启验证是否注册,当然当你重新打开程序的时候他会从文件或者是注册表中读取用户输入的注册码,再通过程序注册算法来进行比照,正确者当然就成为正版,错误的自然就88了,另外以重启验证的软件一般是把注册码保存在注册表或文件中!

下面来说说解决这类软件的一般方法!

重启验证类软件大致的验证过程:

1、运行软件输入注册信息,点注册后。一般软件会提示你重新运行软件,以便验证注册信息的正确性(如FlashGet);

也有的只在你输入正确的注册信息时才有这个提示,不然会告诉你输入的注册信息有问题(此软件就属这类)

2、要破解这种软件,首先是判断一下她把注册信息存在哪里(因为她重启验证时要用)。大致有两种存放方式,第一种是放在注册表里;第二种是放在文件里。(我们可以在输入注册信息,点击确定前,利用监视类软件来查看一下,如FileMon和RegShot等)

3、知道她的注册信息的存放地点后,就可以选则相应的API断点,来调试了

访问注册表类常用API

bp RegOpenKeyA 打开一个现有的注册表项 ****

bp RegOpenKeyExA 打开一个现有的注册表项 ****

bp RegCreateKeyA 在指定的项下创建或打开一个项

bp RegCreateKeyExA 在指定项下创建新项的更复杂的方式

bp RegDeleteKeyA 删除现有项下方一个指定的子项

bp RegDeleteValueA 删除指定项下方的一个值

bp RegQueryValueA 获取一个项的设置值

bp RegQueryValueExA 获取一个项的设置值

bp RegSetValueA 设置指定项或子项的值

bp RegSetValueExA 设置指定项的值

bp RegCloseKey 关闭系统注册表中的一个项(或键)

访问文件类常用API

bp CreateFileA 打开和创建文件、管道、邮槽、通信服务、设备以及控制台 ****

bp OpenFile 这个函数能执行大量不同的文件 *** 作

bp ReadFile 从文件中读出数据

bp ReadFileEx 与ReadFile相似,只是它只能用于异步读 *** 作,并包含了一个完整的回调

======================================================

常用断点(OD中) 拦截消息框:

bp MessageBox(A) 创建消息框

bp MessageBoxExA 创建消息框

bp MessageBoxIndirect(A) 创建定制消息框

拦截窗口:

bp CreateWindow 创建窗口

bp CreateWindowEx(A) 创建窗口

bp ShowWindow 显示窗口

bp UpdateWindow 更新窗口

bp GetWindowText(A) 获取窗口文本

拦截警告声:

bp MessageBeep 发出系统警告声(如果没有声卡就直接驱动系统喇叭发声)

拦截对话框:

bp DialogBox 创建模态对话框

bp DialogBoxParam(A) 创建模态对话框

bp DialogBoxIndirect 创建模态对话框

bp DialogBoxIndirectParam(A) 创建模态对话框

bp CreateDialog 创建非模态对话框

bp CreateDialogParam(A) 创建非模态对话框

bp CreateDialogIndirect 创建非模态对话框

bp CreateDialogIndirectParam(A) 创建非模态对话框

bp GetDlgItemText(A) 获取对话框文本

bp GetDlgItemInt 获取对话框整数值

拦截剪贴板:

bp GetClipboardData 获取剪贴板数据拦截文件:

bp CreateFileA 创建或打开文件 (32位)

bp OpenFile 打开文件 (32位)

bp ReadFile 读文件 (32位)

bp WriteFile 写文件 (32位)

拦截注册表:

bp RegOpenKey(A) 打开子健

bp RegOpenKeyEx 打开子健

bp RegQueryValue(A) 查找子健

bp RegQueryValueEx 查找子健

bp RegSetValue(A) 设置子健

bp RegSetValueEx(A) 设置子健

功能限制拦截断点:

bp EnableMenuItem 禁止或允许菜单项

bp EnableWindow 禁止或允许窗口

拦截驱动器:

bp GetDriveTypeA 获取磁盘驱动器类型

bp GetLogicalDrives 获取逻辑驱动器符号

bp GetLogicalDriveStringsA 获取当前所有逻辑驱动器的根驱动器路径

拦截时间:

bp GetLocalTime 获取本地时间

bp GetSystemTime 获取系统时间

bp GetFileTime 获取文件时间

bp GetTickCount 获得自系统成功启动以来所经历的毫秒数

bp GetCurrentTime 获取当前时间(16位)

bp SetTimer 创建定时器

bp TimerProc 定时器超时回调函数

赫赫,拿来主义

将下面代码保存为CLS文件 ,然后在工程中引用就可以了。

Attribute VB_Name = "BasRegisty"

Option Explicit

'读写注册表任何地方的函数

' 用法见下面

' 摘自杨光宏 http://cako.126.com(VB技巧手册)

'用于 *** 作注册表的API函数定义 -begin-

Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult 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 RegSetValue Lib "advapi32.dll" Alias "RegSetValueA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal dwType As Long, ByVal lpData As String, ByVal cbData 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, lpData As Any, ByVal cbData As Long) As Long

Declare Function RegQueryValue Lib "advapi32.dll" Alias "RegQueryValueA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal lpValue As String, lpcbValue As Long) 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, lpData As Any, lpcbData As Long) As Long

Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) 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 RegDeleteValue Lib "advapi32.dll" Alias "RegDeleteValueA" (ByVal hKey As Long, ByVal lpValueName As String) As Long

'用于 *** 作注册表的API函数定义 -end-

'用于 *** 作注册表的常数定义 -begin-

'预定义的根结点

Public Const HKEY_CLASSES_ROOT = &H80000000

Public Const HKEY_CURRENT_CONFIG = &H80000005

Public Const HKEY_CURRENT_USER = &H80000001

Public Const HKEY_DYN_DATA = &H80000006

Public Const HKEY_LOCAL_MACHINE = &H80000002

Public Const HKEY_PERFORMANCE_DATA = &H80000004

Public Const HKEY_USERS = &H80000003

'预定义的键值类型

Public Const REG_NONE = 0

Public Const REG_SZ = 1

Public Const REG_EXPAND_SZ = 2

Public Const REG_BINARY = 3

Public Const REG_DWORD = 4

Public Const REG_DWORD_LITTLE_ENDIAN = 4

Public Const REG_DWORD_BIG_ENDIAN = 5

Public Const REG_LINK = 6

Public Const REG_MULTI_SZ = 7

Public Const REG_RESOURCE_LIST = 8

Public Const REG_FULL_RESOURCE_DESCRIPTOR = 9

Public Const REG_RESOURCE_REQUIREMENTS_LIST = 10

#If WinNT Then

'打开注册文件的方式

Public Const KEY_EVENT = &H1

Public Const KEY_NOTIFY = &H10

Public Const KEY_QUERY_VALUE = &H1

Public Const KEY_SET_VALUE = &H2

Public Const KEY_CREATE_SUB_KEY = &H4

Public Const KEY_ENUMERATE_SUB_KEYS = &H8

Public Const KEY_CREATE_LINK = &H20

Public Const KEY_READ = ((STANDARD_RIGHTS_READ Or KEY_QUERY_VALUE Or KEY_ENUMERATE_SUB_KEYS Or KEY_NOTIFY) And (Not SYNCHRONIZE))

Public Const KEY_EXECUTE = (KEY_READ)

Public Const KEY_WRITE = ((STANDARD_RIGHTS_WRITE Or KEY_SET_VALUE Or KEY_CREATE_SUB_KEY) And (Not SYNCHRONIZE))

Public 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))

#End If

'注册文件错误描述

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_REGISTRY_RECOVERED = 1014&

Const ERROR_REGISTRY_CORRUPT = 1015&

Const ERROR_REGISTRY_IO_FAILED = 1016&

Const ERROR_NOT_REGISTRY_FILE = 1017&

Const ERROR_KEY_DELETED = 1018&

Const ERROR_NO_LOG_SPACE = 1019&

Const ERROR_KEY_HAS_CHILDREN = 1020&

Const ERROR_CHILD_MUST_BE_VOLATILE = 1021&

Const ERROR_RXACT_INVALID_STATE = 1369&

' 自定义注册文件错误

Const REGAGENT_NOKEY = -1002

Const REGAGENT_NOSUBKEY = -1003

Public glStatus As Long

'用于 *** 作注册表的常数定义 -end-

Function gfsGetKeyStringValue(ByVal plKey As Long, ByVal psKey As String, ByVal psSubKey As String) As String

'功 能:从注册表中取得串值

'参 数:

' 输入: plKey Long 根键名

' psKey String 主键

' psSubKey String 子键名

' 输出: gfsGetKeyStringValue String 取得的注册表串值

' 影响: glStatus Long 状态值

Dim llKeyID As Long '打开键的ID

Dim llBufferSize As Long '需读取串的串值长度

Dim lsKeyValue As String '存放读取的串值

'预先置为空

gfsGetKeyStringValue = Empty

glStatus = ERROR_SUCCESS '假设成功

'确定参数有效

If Len(psKey) = 0 Then '主键未设置(子键未设置则读默认值)

glStatus = REGAGENT_NOKEY

Exit Function

End If

'首先打开主键

glStatus = RegOpenKey(plKey, psKey, llKeyID)

If glStatus = ERROR_SUCCESS Then '成功则取需读取字串的串值大小

glStatus = RegQueryValueEx(llKeyID, psSubKey, 0&, REG_SZ, 0&, llBufferSize)

If llBufferSize <2 Then '空值

glStatus = RegCloseKey(llKeyID)

Else '有值,正式读取串值

lsKeyValue = String(llBufferSize + 1, " ")

glStatus = RegQueryValueEx(llKeyID, psSubKey, 0&, REG_SZ, ByVal lsKeyValue, llBufferSize)

If glStatus = ERROR_SUCCESS Then

gfsGetKeyStringValue = Left$(lsKeyValue, llBufferSize - 1)

End If

glStatus = RegCloseKey(llKeyID)

End If

End If

End Function

Function gflGetKeyBinaryValue(ByVal plKey As Long, ByVal psKey As String, ByVal psSubKey As String) As Long

'功 能:从注册表中取得二进制值

'参 数:

' 输入: plKey Long 根键名

' psKey String 主键名

' psSubKey String 子键名

' 输出: gflGetKeyBinaryValue Long 取得的注册表二进制值

' 影响: glStatus Long 状态值

Dim llKeyID As Long '打开键的ID

Dim llKeyValue As Long '存放读取的二进制值

'预先置为空

gflGetKeyBinaryValue = Empty

glStatus = ERROR_SUCCESS '假设成功

'确定参数有效

If Len(psKey) = 0 Then '主键未设置(子键未设置则读默认值)

glStatus = REGAGENT_NOKEY

Exit Function

End If

'首先打开主键

glStatus = RegOpenKey(plKey, psKey, llKeyID)

If glStatus = ERROR_SUCCESS Then '成功则取二进制值

glStatus = RegQueryValueEx(llKeyID, psSubKey, 0&, REG_BINARY, llKeyValue, Len(llKeyValue))

If glStatus = ERROR_SUCCESS Then

gflGetKeyBinaryValue = llKeyValue

End If

glStatus = RegCloseKey(llKeyID)

End If

End Function

Function gflGetKeyDwordValue(ByVal plKey As Long, ByVal psKey As String, ByVal psSubKey As String) As Long

'ok

'功 能:从注册表中取得双字值

'参 数:

' 输入: plKey Long 根键名

' psKey String 主键名

' psSubKey String 子键名

' 输出: gflGetKeyDwordValue Long 取得的注册表双字值

' 影响: glStatus Long 状态值

Dim llKeyID As Long '打开键的ID

Dim llKeyValue As Long '存放读取的双字值

'预先置为空

gflGetKeyDwordValue = Empty

glStatus = ERROR_SUCCESS '假设成功

'确定参数有效

If Len(psKey) = 0 Then '主键未设置(子键未设置则读默认值)

glStatus = REGAGENT_NOKEY

Exit Function

End If

'首先打开主键

glStatus = RegOpenKey(plKey, psKey, llKeyID)

If glStatus = ERROR_SUCCESS Then '成功则取双字值

glStatus = RegQueryValueEx(llKeyID, psSubKey, 0&, REG_DWORD, llKeyValue, Len(llKeyValue))

If glStatus = ERROR_SUCCESS Then

gflGetKeyDwordValue = llKeyValue

End If

glStatus = RegCloseKey(llKeyID)

End If

End Function

Sub gpvSetKeyStringValue(ByVal plKey As Long, ByVal psKey As String, ByVal psSubKey As String, ByVal psKeyValue As String)

'ok

'功 能:设置注册表中的串值

'参 数:

' 输入: plKey Long 根键名

' psKey String 主键名

' psSubKey String 子键名

' psKeyValue String 要设置的串值

' 输出: 无

' 影响: glStatus Long 状态值

Dim llKeyID As Long '打开键的ID

glStatus = ERROR_SUCCESS '假设成功

'确定参数有效

If Len(psKey) = 0 Then '主键未设置(子键未设置则读默认值)

glStatus = REGAGENT_NOKEY

Exit Sub

End If

'首先打开主键

glStatus = RegOpenKey(plKey, psKey, llKeyID)

If glStatus = ERROR_SUCCESS Then '成功则设置值

If Len(psKeyValue) = 0 Then '设为空值

glStatus = RegSetValueEx(llKeyID, psSubKey, 0&, REG_SZ, 0&, 0&)

Else '设为正常值

glStatus = RegSetValueEx(llKeyID, psSubKey, 0&, REG_SZ, ByVal psKeyValue, Len(psKeyValue) + 1)

End If

glStatus = RegCloseKey(llKeyID)

End If

End Sub

Sub gpvSetKeyDwordValue(ByVal plKey As Long, ByVal psKey As String, ByVal psSubKey As String, ByVal plKeyValue As Long)

'ok

'功 能:设置注册表中的双字值

'参 数:

' 输入: plKey Long 根键名

' psKey String 主键名

' psSubKey String 子键名

' plKeyValue Long 要设置双字值

' 输出: 无

' 影响: glStatus Long 状态值

Dim llKeyID As Long '打开键的ID

glStatus = ERROR_SUCCESS '假设成功

'确定参数有效

If Len(psKey) = 0 Then '主键未设置(子键未设置则读默认值)

glStatus = REGAGENT_NOKEY

Exit Sub

End If

'首先打开主键

glStatus = RegOpenKey(plKey, psKey, llKeyID)

If glStatus = ERROR_SUCCESS Then '成功则设置值

glStatus = RegSetValueEx(llKeyID, psSubKey, 0&, REG_DWORD, plKeyValue, Len(plKeyValue))

glStatus = RegCloseKey(llKeyID)

End If

End Sub

Sub gpvSetKeyBinaryValue(ByVal plKey As Long, ByVal psKey As String, ByVal psSubKey As String, ByVal plKeyValue As Long)

'ok

'功 能:设置注册表中的二进制值

'参 数:

' 输入: plKey Long 根键名

' psKey String 主键名

' psSubKey String 子键名

' plKeyValue Long 要设置的二进制值

' 输出: 无

' 影响: glStatus Long 状态值

Dim llKeyID As Long '打开键的ID

glStatus = ERROR_SUCCESS '假设成功

'确定参数有效

If Len(psKey) = 0 Then '主键未设置(子键未设置则读默认值)

glStatus = REGAGENT_NOKEY

Exit Sub

End If

'首先打开主键

glStatus = RegOpenKey(plKey, psKey, llKeyID)

If glStatus = ERROR_SUCCESS Then '成功则设置值

glStatus = RegSetValueEx(llKeyID, psSubKey, 0&, REG_BINARY, plKeyValue, Len(plKeyValue))

glStatus = RegCloseKey(llKeyID)

End If

End Sub

Function gflCreateKey(ByVal plKey As Long, ByVal psKey As String) As Long

'ok

'功 能:创建注册表中的主键

'参 数:

' 输入: plKey Long 根键名

' psKey String 主键名

' 输出: gflCreateKey Long 创建的主键ID

' 影响: glStatus Long 状态值

Dim llKeyID As Long '键ID

glStatus = ERROR_SUCCESS '假设成功

'确定参数有效

If Len(psKey) = 0 Then '主键未设置

glStatus = REGAGENT_NOKEY

Exit Function

End If

'创建主键

glStatus = RegCreateKey(plKey, psKey, llKeyID)

If glStatus = ERROR_SUCCESS Then

gflCreateKey = llKeyID

End If

End Function

Sub gpvDeleteKey(ByVal plKey As Long, ByVal psKey As String, ByVal psSubKey As String)

'ok

'功 能:删除注册表中的主键

'参 数:

' 输入: plKey Long 根键名

' psKey String 主键名

' psSubKey String 子键名

' 输出: 无

' 影响: glStatus Long 状态值

Dim llKeyID As Long '键ID

glStatus = ERROR_SUCCESS '假设成功

'确定参数有效

If Len(psKey) = 0 Then '主键未设置

glStatus = REGAGENT_NOKEY

Exit Sub

End If

'利用创建主键判断是否存在主键

glStatus = RegCreateKey(plKey, psKey, llKeyID)

glStatus = RegDeleteKey(llKeyID, ByVal psSubKey)

End Sub

Sub gpvDeleteKeyValue(ByVal plKey As Long, ByVal psKey As String, ByVal psSubKey As String)

'ok

'功 能:删除注册表中的键值

'参 数:

' 输入: plKey Long 根键名

' psKey String 主键名

' psSubKey String 子键名

' 输出: 无

' 影响: glStatus Long 状态值

Dim llKeyID As Long '键ID

glStatus = ERROR_SUCCESS '假设成功

'确定参数有效

If Len(psKey) = 0 Then '主键未设置

glStatus = REGAGENT_NOKEY

Exit Sub

End If

'利用创建主键判断是否存在主键

glStatus = RegCreateKey(plKey, psKey, llKeyID)

glStatus = RegDeleteValue(llKeyID, ByVal psSubKey)

End Sub

'Function gfsGetKeyStringValue(ByVal plKey As Long, ByVal psKey As String, ByVal psSubKey As String) As String

'功 能:从注册表中取得串值

'Function gflGetKeyBinaryValue(ByVal plKey As Long, ByVal psKey As String, ByVal psSubKey As String) As Long

'功 能:从注册表中取得二进制值

'Function gflGetKeyDwordValue(ByVal plKey As Long, ByVal psKey As String, ByVal psSubKey As String) As Long

'功 能:从注册表中取得双字值

'Sub gpvSetKeyStringValue(ByVal plKey As Long, ByVal psKey As String, ByVal psSubKey As String, ByVal psKeyValue As String)

'功 能:设置注册表中的串值

'Sub gpvSetKeyDwordValue(ByVal plKey As Long, ByVal psKey As String, ByVal psSubKey As String, ByVal plKeyValue As Long)

'功 能:设置注册表中的双字值

'Sub gpvSetKeyBinaryValue(ByVal plKey As Long, ByVal psKey As String, ByVal psSubKey As String, ByVal plKeyValue As Long)

'功 能:设置注册表中的二进制值

'Function gflCreateKey(ByVal plKey As Long, ByVal psKey As String) As Long

'功 能:创建注册表中的主键

'Sub gpvDeleteKey(ByVal plKey As Long, ByVal psKey As String, ByVal psSubKey As String)

'功 能:删除注册表中的主键

'Sub gpvDeleteKeyValue(ByVal plKey As Long, ByVal psKey As String, ByVal psSubKey As String)

'功 能:删除注册表中的键值


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/tougao/11182311.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-14
下一篇 2023-05-14

发表评论

登录后才能评论

评论列表(0条)

保存