Results 1 to 1 of 1
  1. #1
    ecaep42's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    123
    Reputation
    10
    Thanks
    11
    My Mood
    Relaxed

    Working with registry

    Registry, to some, sounds like a big scary monster that'll f*ck your computer up and make you its b*tch. Not true, it is mostly used for settings and device info, I'm sure if you delete something, it'll pop back up sooner or later... but same can't be said for everything in the registry.

    Before any of this, your program will need administration rights, so you'll need to edit the manifest, to do so, go to your project properties, click 'View Windows Settings', and change <requestExecutionLevel> to "requireAdministrator".

    Registry is great for finding out computer information, such as Processor, Motherboard, GPU, Current Network name, Playback & Recording device name, and is also great for adding unfindable settings, without using an ini file (which can be a pain, trust me), using the following code

    Code:
    My.Computer.Registry.CurrentUser.CreateSubKey("KeyNameHere")
    this creates a key, but the values are not automatically added, so you can add one using

    Code:
    My.Computer.Registry.SetValue("HKEY_CURRENT_USER\KeyNameHere", "NameOfValue", "Value")
    You can rename values, but it can be hard to do.

    Code:
    Dim TestKey = My.Computer.Registry.CurrentUser.OpenSubKey("KeyNameHere", True)
    TestKey.SetValue("NameOfValue", "NewValue")
    TestKey.Close()
    You can also delete keys, but I'm not gonna scratch that surface with a 30 foot pole.

    Does a key exist? You can do that too.
    Code:
    If My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\KeyNameHere", "NewValue", Nothing) Is Nothing Then
    'It does not exist.
    Else
    'It Exists
    End If
    The code added Is Nothing, but you can remove that to swap the does not exist and exists code around if you find it easier.

    Do you want to save settings of a program? Don't want them to save settings? Does your program cost 4000 dollars? *Cough* Microsoft *Cough* Well, with registry, you can do that! but hide it well... Let's hide it in... say... Internet Explorer, nobody ever looks through there...

    Code:
    My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer", "IsPremium", "True")
    This is just scratching the surface of registry, I'm sure you can do much much more with registry than this.
    Last edited by ecaep42; 10-07-2013 at 09:41 PM.
    HOW TO GET A ADMIN/MODS ATTENTION:
    1) Find a reason to get their attention.
    2) Post a outside link to a broken file (Such as Med-ia Fire, Mega, and even youtube (Since they hate outside links so much)).
    3) Yell and call other people ******s
    4) Become a closet homosexual
    5) Watch as the mods try to ban you, but cant because its a fake url and they fell for your trick.
    6) Report them to a higher-admin.
    7) Watch them get demoted and banned

    ᕙ( ͡° ͜ʖ ͡°)ᕗ OBEY MY DOG ᕙ( ͡° ͜ʖ ͡°)ᕗ


    [url]https://www.youtube.com/watch?v=7cw2DllsZmc]https://www.youtube.com/watch?v=7cw2DllsZmc[/video]

Similar Threads

  1. Replies: 8
    Last Post: 10-11-2008, 08:33 AM
  2. [Release]WRGH Stamina V1 (Works with new update)
    By nbr1dan in forum WarRock - International Hacks
    Replies: 24
    Last Post: 08-01-2007, 08:46 PM
  3. working with ByPass
    By snipdbyme1 in forum WarRock - International Hacks
    Replies: 5
    Last Post: 05-21-2007, 10:59 AM
  4. Replies: 2
    Last Post: 03-01-2007, 07:10 PM
  5. [Tutorial]Working with cheatengine these days
    By System79 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 09-06-2006, 11:48 PM