VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

This code allows you to create keys, delete keys and delete values from the registry

INVICTUS  (2 Submissions)   Registry   VB 6.0   Unknown Difficulty   Fri 26th August 2005   Mon 8th February 2021

This code allows you to create keys, delete keys and delete values from the registry

API Declarations


textboxes: txtclass, txtkey

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 Const HKEY_LOCAL_MACHINE = &H80000002
Private Const HKEY_CURRENT_USER = &H80000001
Private Const HKEY_CURRENT_CONFIG = &H80000005
Private Const HKEY_CLASSES_ROOT = &H80000000
Private Const HKEY_USERS = &H80000003
Private Const REG_SZ = 1



Rate This code allows you to create keys, delete keys and delete values from the registry (2(2 Vote))
This code allows you to create keys, delete keys and delete values from the registry.bas

This code allows you to create keys, delete keys and delete values from the registry Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters