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:
Name = the CPU Name, for instanceCode: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());
"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):
Sample command:Code:Registry registry = new Registry();
registry.getValue("Command here");
Code:reg query \"HKLM\\HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0\" /v Identifier