COMAPI.bas
资源名称:短信测试3.0.rar [点击查看]
上传用户:bofapump
上传日期:2010-03-19
资源大小:97k
文件大小:2k
源码类别:
Modem编程
开发平台:
Visual Basic
- Attribute VB_Name = "COMAPI"
- Option Explicit
- Public Const HKEY_CLASSES_ROOT = &H80000000
- Public Const HKEY_CURRENT_USER = &H80000001
- Public Const HKEY_LOCAL_MACHINE = &H80000002
- Public Const HKEY_USERS = &H80000003
- Public Const HKEY_PERFORMANCE_DATA = &H80000004
- Public Const HKEY_CURRENT_CONFIG = &H80000005
- Public Const HKEY_DYN_DATA = &H80000006
- 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_BIG_ENDIAN = 5
- Public Const REG_MULTI_SZ = 7
- '注意以下的函数声明须在一行内写完
- Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
- Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
- Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey 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 RegEnumValue Lib "advapi32.dll" Alias "RegEnumValueA" (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpValueName As String, lpcbValueName As Long, lpReserved As Long, lpType As Long, lpData As Byte, lpcbData As Long) As Long
- Declare Function RegEnumValueAsAny Lib "advapi32.dll" Alias "RegEnumValueA" (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpValueName As String, lpcbValueName As Long, lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
- Declare Function RegEnumValueAsAny2 Lib "advapi32.dll" Alias "RegEnumValueA" (ByVal hKey As Long, ByVal dwIndex As Long, lpValueName As Any, lpcbValueName As Long, lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
- Declare Function ExpandEnvironmentStrings Lib "kernel32" Alias "ExpandEnvironmentStringsA" (ByVal lpSrc As String, ByVal lpDst As String, ByVal nSize As Long) As Long