Thread: Java Registry API

Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1 Java Registry API 
    Renown Programmer

    Nikki's Avatar
    Join Date
    Aug 2008
    Age
    20
    Posts
    3,883
    Thanks given
    528
    Thanks received
    928
    Rep Power
    5000
    Made up a fast API, this lib can get values from the windows registry (No idea if it will work on Vista/Windows 7, only tested on windows xp), and inserting keys so you can store validation keys/whatever safely in the registry.

    Download:
    Jar - http://elementhost.net/reglib/reglib.jar
    Src - http://elementhost.net/reglib/src.rar

    Usage:
    Code:
    		Registry registry = new Registry();
    		System.out.println("CPU Name - "+registry.getMainCPUName());
    		System.out.println("CPU Speed - "+registry.getMainCPUSpeed());
    		System.out.println("CPU Identifier - "+registry.getMainCPUIdentifier());
    		System.out.println("CPU Arch - "+registry.getMainCPUArch());
    		System.out.println("CPU Vendor - "+registry.getMainCPUVendor());
    Name = the CPU Name, for instance
    "Genuine Intel(R) CPU T1350 @ 1.86GHz"
    Speed = the CPU Speed in mhz
    Identifier = The CPU arch model and family
    "x86 Family 6 Model 14 Stepping 8"
    Architecture = 32bit/64bit
    Vendor = the CPU Vendor,
    "GenuineIntel"

    If you run the jar with "java -jar reglib.jar" it will show a demo like the above.

    Getting values (Values with REG_SZ, for others find the appropriate methods):
    Code:
    Registry registry = new Registry();
    registry.getValue("Command here");
    Sample command:
    Code:
    reg query \"HKLM\\HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0\" /v Identifier
    Please don't add/pm me asking for RSPS help!

    Links:
    - [525] Project TBA
    - Sleeksnap
    - Pastebin

     

  2. #2  
    Registered Member
    Dave's Avatar
    Join Date
    Dec 2006
    Age
    19
    Posts
    3,871
    Thanks given
    181
    Thanks received
    166
    Rep Power
    2801
    Cool thanks.

     

  3. #3  
    Registered Member
    timetodothis's Avatar
    Join Date
    Jul 2009
    Posts
    532
    Thanks given
    24
    Thanks received
    55
    Rep Power
    123
    Actually quite useful good work.
     

  4. #4  
    Banned

    Join Date
    Jul 2008
    Age
    19
    Posts
    5,831
    Thanks given
    1,304
    Thanks received
    198
    Rep Power
    0
    Good idea, but that might generate a LOT of overhead? lol.
     

  5. #5  
    Renown Programmer

    Nikki's Avatar
    Join Date
    Aug 2008
    Age
    20
    Posts
    3,883
    Thanks given
    528
    Thanks received
    928
    Rep Power
    5000
    This is only made for simple queries, anything more than grabbing 1 or 2 values/inserting a value should be done in commandline/a JNI registry api.
    Please don't add/pm me asking for RSPS help!

    Links:
    - [525] Project TBA
    - Sleeksnap
    - Pastebin

     

  6. #6  
    Banned

    Join Date
    Jul 2008
    Age
    19
    Posts
    5,831
    Thanks given
    1,304
    Thanks received
    198
    Rep Power
    0
    Heres a native library attached.
    Docs: GJT JavaDoc: Package com.ice.jni.registry
     

  7. #7  
    saifix____
    Guest
    WINDOWS registry?? just to get the CPU info..?

    lol this can be done in asm and still be multi-platform.
     

  8. #8  
    Renown Programmer

    Nikki's Avatar
    Join Date
    Aug 2008
    Age
    20
    Posts
    3,883
    Thanks given
    528
    Thanks received
    928
    Rep Power
    5000
    Quote Originally Posted by Colby View Post
    Heres a native library attached.
    Docs: GJT JavaDoc: Package com.ice.jni.registry
    JNIRegistry
    Please don't add/pm me asking for RSPS help!

    Links:
    - [525] Project TBA
    - Sleeksnap
    - Pastebin

     

  9. #9  
    Banned

    Join Date
    Jul 2008
    Age
    19
    Posts
    5,831
    Thanks given
    1,304
    Thanks received
    198
    Rep Power
    0
    Quote Originally Posted by saifix View Post
    WINDOWS registry?? just to get the CPU info..?

    lol this can be done in asm and still be multi-platform.
    No, you can only get the architecture and #cores the JVM is using.
     

  10. #10  
    saifix____
    Guest
    Quote Originally Posted by Colby View Post
    No, you can only get the architecture and #cores the JVM is using.
    wat i said ASM, i.e., assembler.
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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