Hi all, Im coding a new proggy and 1 of its features deletes a certain regedit key. Can someone please tell me how to do this? I been programming for about 2 weeks and im a bit stuck
Printable View
Hi all, Im coding a new proggy and 1 of its features deletes a certain regedit key. Can someone please tell me how to do this? I been programming for about 2 weeks and im a bit stuck
Erm I think people may need a little more than that to go on, which programming language maybe..lol
just a thought :)
2 weeks just for making a script kiddie program for deleting peoples registry key?
You suck in programming ;)
Why you need it? you can manually delete your registry. May be you are trying to make a trojan horse.
Ok I'll help you a bit. just play with system.dat & user.dat files....
sorry 2 early lol. Visual Basic ;)
no need to be rude. Nope im making a zone unbanner. if u go on msn gaming zone.
Ok, This is the code For Deleting Values, Deleting Keys, and Creating keys.... Send me a copy of the program after your done =)
Deleting Values
Deleting KeysCode:Public Sub DeleteValue(ByVal hKey As Long, _
ByVal strPath As String, ByVal strValue As String)
Dim hCurKey As Long
Dim lRegResult As Long
lRegResult = RegOpenKey(hKey, strPath, hCurKey)
lRegResult = RegDeleteValue(hCurKey, strValue)
lRegResult = RegCloseKey(hCurKey)
End Sub
Creating KeysCode:Public Sub DeleteKey(ByVal hKey As Long, ByVal strPath As String)
Dim lRegResult As Long
lRegResult = RegDeleteKey(hKey, strPath)
End Sub
All the code came from this website by a simple google search....Code:Public Sub CreateKey(hKey As Long, strPath As String)
Dim hCurKey As Long
Dim lRegResult As Long
lRegResult = RegCreateKey(hKey, strPath, hCurKey)
If lRegResult <> ERROR_SUCCESS Then
'there is a problem
End If
lRegResult = RegCloseKey(hCurKey)
End Sub
Have fun!
cheers :)