regedit
Results 1 to 6 of 6

Thread: regedit

  1. #1
    Junior Member
    Join Date
    Aug 2001
    Posts
    28

    regedit

    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
    :-p

  2. #2
    Senior Member
    Join Date
    Feb 2002
    Posts
    130
    Erm I think people may need a little more than that to go on, which programming language maybe..lol
    just a thought

  3. #3
    Senior Member Unl3Ashed's Avatar
    Join Date
    Aug 2002
    Posts
    103
    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....
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."
    - Albert Einstein

  4. #4
    Junior Member
    Join Date
    Aug 2001
    Posts
    28

    .

    sorry 2 early lol. Visual Basic

    no need to be rude. Nope im making a zone unbanner. if u go on msn gaming zone.
    :-p

  5. #5
    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
    Code:
    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
    Deleting Keys
    Code:
    Public Sub DeleteKey(ByVal hKey As Long, ByVal strPath As String)
    Dim lRegResult As Long
    
    lRegResult = RegDeleteKey(hKey, strPath)
    
    End Sub
    Creating Keys
    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
    All the code came from this website by a simple google search....
    Have fun!

  6. #6
    Junior Member
    Join Date
    Aug 2001
    Posts
    28
    cheers
    :-p

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •