This will show you how to read Values form the Registy. I have tested this code in Windows 2000 but Iam have not tested it in any other system.
This code will return usfull stuff like The current username , Windows ID Number , Were windows was first installed from and more. Please vote if you like it