IkovPS

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
    21
    Posts
    3,940
    Thanks given
    543
    Thanks received
    1,021
    Time Online
    1 d 11 h 4 m
    Avg. Time Online
    57 m
    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 - [Only registered and activated users can see links. ]
    Src - [Only registered and activated users can see links. ]

    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:
    - [Only registered and activated users can see links. ]
    - [Only registered and activated users can see links. ]
    - [Only registered and activated users can see links. ]

     

  2. #2  
    Registered Member
    Dave's Avatar
    Join Date
    Dec 2006
    Age
    20
    Posts
    3,871
    Thanks given
    181
    Thanks received
    166
    Time Online
    1 h 50 m
    Avg. Time Online
    3 m
    Rep Power
    2802
    Cool thanks.

     

  3. #3  
    Registered Member
    timetodothis's Avatar
    Join Date
    Jul 2009
    Posts
    532
    Thanks given
    24
    Thanks received
    55
    Time Online
    N/A
    Avg. Time Online
    N/A
    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
    Time Online
    N/A
    Avg. Time Online
    N/A
    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
    21
    Posts
    3,940
    Thanks given
    543
    Thanks received
    1,021
    Time Online
    1 d 11 h 4 m
    Avg. Time Online
    57 m
    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:
    - [Only registered and activated users can see links. ]
    - [Only registered and activated users can see links. ]
    - [Only registered and activated users can see links. ]

     

  6. #6  
    Banned

    Join Date
    Jul 2008
    Age
    19
    Posts
    5,831
    Thanks given
    1,304
    Thanks received
    198
    Time Online
    N/A
    Avg. Time Online
    N/A
    Rep Power
    0
    Heres a native library attached.
    Docs: [Only registered and activated users can see links. ]
     

  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
    21
    Posts
    3,940
    Thanks given
    543
    Thanks received
    1,021
    Time Online
    1 d 11 h 4 m
    Avg. Time Online
    57 m
    Rep Power
    5000
    Quote Originally Posted by Colby View Post
    Heres a native library attached.
    Docs: [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    Please don't add/pm me asking for RSPS help!

    Links:
    - [Only registered and activated users can see links. ]
    - [Only registered and activated users can see links. ]
    - [Only registered and activated users can see links. ]

     

  9. #9  
    Banned

    Join Date
    Jul 2008
    Age
    19
    Posts
    5,831
    Thanks given
    1,304
    Thanks received
    198
    Time Online
    N/A
    Avg. Time Online
    N/A
    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
  •