VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

allows you to create registry keys, values, strings, dwords, get strings and dword values, and dele

saibaman  (1 Submission)   Registry   VB 6.0   Unknown Difficulty   Tue 13th April 2004   Mon 8th February 2021

allows you to create registry keys, values, strings, dwords, get strings and dword values, and delete keys and values using the functions

API Declarations


'i did not create this code. it was made by revolt (www.revoltsoft.com)
'i got it from www.gamesxposed.com
Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hkey As Long) As Long
Private Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal hkey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Private Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal hkey As Long, ByVal lpSubKey As String) As Long
Private Declare Function RegDeleteValue Lib "advapi32.dll" Alias "RegDeleteValueA" (ByVal hkey As Long, ByVal lpValueName As String) As Long
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 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 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

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

Private Const ERROR_SUCCESS = 0&
Private Const REG_SZ = 1
Private Const REG_DWORD = 4

Rate allows you to create registry keys, values, strings, dwords, get strings and dword values, and dele (2(2 Vote))
allows you to create registry keys, values, strings, dwords, get strings and dword values, and dele.bas

allows you to create registry keys, values, strings, dwords, get strings and dword values, and dele Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters